githubEdit

Custom Elevator Doors

This guide will describe the steps necessary to add custom automatic doors to your custom elevator build using World Builder

Custom Elevator Doors

Requirements

Tools

Knowledge

Overview

  • In this guide, we will build a custom door that opens/closes automatically when your lift arrives, but stays locked when the lift is not at the current floor

Setup

Spawning Devices

  • First we need to choose a door. For this example we will use a double glass door

  • The door we will use is base\gameplay\devices\doors\double_door\double_door_glass_k.ent

    • Spawn it as Device, and place it somewhere

circle-exclamation

Assigning NodeRef

  • In order to link and reference the spawned door, it will need it's own unique NodeRef

  • Select the door in World Builder, then expand the World Node header and fill the NodeRef field with a unique string

circle-exclamation

Linking Devices

  • Next we need to tell the elevator terminal to use your new door.

  • First select the terminal for the floor at which you just placed your door

  • Go to the Device -> Device Connections header of the terminal

  • Add one entry for the new door

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

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

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

Setting Up Instance Data

  • In order for the door to open/close automatically, stay locked when not in use, and be recognized as a lift door, we will need to use entity instance data

  • Select the door in world builder and navigate to:

    • Entity Instance Data / DoorController / persistentState / DoorSetup

    • under doorType select automatic

    • under initialDoorState select locked

    • select isLiftDoor

circle-exclamation

Finishing up

  • You should now have an automatic door spawned as a device, with it's own NodeRef, and linked to the terminal of your choosing

  • Add this to your custom elevator project in World Builder and you are ready to exportarrow-up-right

circle-exclamation
circle-exclamation

Last updated