For the complete documentation index, see llms.txt. This page is also available as Markdown.

Custom Elevators

This guide will describe the steps necessary to add a new native elevator, using World Builder

Requirements

Tools

Knowledge

  • You need to have a basic understanding of:

    • Working with WolvenKit

    • Using World Builder (Spawning things and importing into WolvenKit)

Creating the elevator

Quick Setup Elevator tutorial in video

Quick Setup Elevator explained

Spawning the elevator

  1. In Spawn New tab, search for an object of type Entity and variant Device.

  2. Filter the results by Device Class Name and select LiftControllerPS.

  3. Select the elevator you want, some of them have differents appearances.

  4. Position the elevator where you want it to be.

Setting the first floor

In the elevator properties, click on the Quick Elevator Setup button, a popup should appear :

  1. Start by creating a unique node ref for the elevator, this can be done by clicking on the generate button on the right of the input.

  2. Click on + Add Floor in the Floor Manager. Each floor contains at least a terminal and a ground marker.

    • The terminal allows the player to call the elevator, it is also needed to register the floor in the elevator memory.

    • The ground marker indicates where the elevator should move for this floor.

    • Both the terminal and the marker have a node ref that are auto-generated (customizable).

  3. Choose a floor name :

    • You can use any LocKey# value to have a translated text.

    • Localization suggestions offers you a selection of already existing translations used for this exact purpose.

    • This input also accept direct text that won't be translated in other languages (not recommended).

  4. Select which door should open. Each floor can open any elevator door (depending on the number of doors of the elevator you have chosen, elevators have between 1 and 3 doors).

  5. (Optional) Add external doors.

    • These doors are meant to prevent the player from falling into the elevator shaft, they automatically open when the elevator is at the same floor and the player is nearby.

    • You can add as many external doors as you want.

    • External door also requires a node ref that is auto-generated by default (customizable).

Two externals doors are suggested, but if you wish to use another DoorControllerPS device, you can do it. Check out this page for manual addition : Custom Elevator Doors

Setting the next floors

Repeat the same process and then, outside of the Quick Elevator Setup popup, select the floor group (containing your terminal, marker and optional doors) and move it. Place it where you want your floor to be.

The external doors and terminal are positioned approximately at door n°1, you may need to adjust their position independently per floor.

But keep in mind that the ground marker and external doors should ideally stay at the same Z axis value (to avoid elevation differences).

arrows-to-circle

Spawning nodes

Overview

  • In this guide, we will build a simple elevator with 2 floors

  • For this we will need 3 device nodes:

    • An elevator object

    • Two elevator terminals

  • Additionally, we will need two markers:

    • One per floor

    • These determine the position to which the elevator drives

Spawning Devices

  • For the elevator, we will use base\gameplay\devices\elevators\megabuilding_elevator\megabuilding_lift_1.ent

    • Spawn it as Device, and place it somewhere

  • For the terminals we will use base\gameplay\devices\elevators\terminals\elevator_floor_terminal_1.ent

    • Spawn two of them as Device, and place one per stop

Spawning Markers

  • For the markers, select Meta -> Static Markerin World Builder

  • Spawn two markers

  • In order to properly position them, do as follows for each marker / floor:

    • Move the elevator device spawned earlier to the position you want it to stop in

    • Right-Click the position (Under the Transform header) of the elevator device, and select Copy position and rotation

    • Select one marker, right click its position field, and select `Paste position and rotation`

    • Now you will have moved the marker into the same spot as the elevator

    • Repeat for each marker / floor

  • Make sure that once you are done setting up the markers, you move the elevator back to the position of the starting floor

Assigning NodeRef's

  • In order to link and reference all the spawned object, each one will need its own, unique NodeRef

  • Expand the World Nodeheader and fill the NodeRef field with a unique string

Example of assigning a NodeRef
  • In the end, we will have assigned 5 NodeRef's

  • For example:

    • $/terminal_top, $/terminal_bottom, $/marker_top, $/marker_bottom, $/elevator

Linking Devices

  • Next we need to tell the elevator which floors it can use

  • To do this, we will go to the Device -> Device Connections header of the elevator

  • Add one entry for each floor / terminal

    • Fill the device class name field (On the left), with the device class name of the terminal

      • In our case this would be ElevatorFloorTerminalControllerPS, which can also be found under the device header of the terminals

    • Fill the NodeRef field with the NodeRef of the terminal that you are linking

    • Keep in mind that the elevator will see the floors in the order in which you add them, so the first one in the list should be the lowest floor

    Example of the device connections for an elevator with two floors

Setting up persistency

  • In order for the elevator to be fully functional, the terminals must be set to be persistent

  • Do this by checking the Persistentcheckbox of each terminal

Setting up instance data

  • In order for each terminal to know which floor marker to use, and what its name is supposed to be, we will use entity instance data

  • For each terminal, navigate to:

    • Entity Instance Data / ElevatorFloorTerminalController / persistentState / elevatorFloorSetup

    • In there, set floorDisplayNameto the LocKey that you want to be used as name (E.g. LocKey#49237

    • Set floorMarkerto the NodeRef of the floor's static marker (E.g. $/marker_bottom)

    • Optionally, use the checkboxes under doorShouldOpenFrontLeftRightto determine which doors of the elevator should open on this floor

    Example data for a terminals ElevatorFloorSetup (floorMarkerNodeRef gets turned into hash)
  • Optionally change the elevator speed and inital starting floor by modifying:

    • Entity Instance Data / LiftController / persistentState / liftSetup

Finishing up

  • Let's recap what you should have now:

    • A elevator, spawned as Device, with its own NodeRef, and linked to both terminals (Make sure you use the terminals NodeRefs, not the markers)

    • Two terminals, spawned as Device, set to be persistent, with their own NodeRefs, and properly setup instance data (Linking them to the floor markers and with names)

    • Two static markers, each with their own NodeRef, positioned correctly

  • Once you have all this, you are ready to export

Last updated