DU-ELEVATOR#
A Generic Elevator script for Dual universe
Guilded Server (better than Discord)#
You can join me on Guilded for help or suggestions or requests by following that link : https://guilded.jericho.dev
Discord Server#
You can join me on Discord for help or suggestions or requests by following that link : https://discord.gg/qkdjyqDZQZ
Edit the code#
Installation#
Important notice#
- the script was only tested on a remote control
Links#
You must link the following elements to the remote control (order doesn't matter, the script will detect them automatically):
- Link the core to the remote control
- Link the fuel tank to the remote control (only if you want to see the fuel gauge)
Setup#
- you need at least a vertical engine pointing the bottom
- you need at least one engine on each horizontal direction (forward, right, left, backward)
- you need at least 3 adjustors on each angles of the construct : (see picture below)
- one pointing up (this one is used for autoroll and autopitch)
- one pointing on one side (this one is used for autoyaw)
- one pointing on the orther side of the angle (this one is used for autoyaw)

You may need to adjust the power depending on the weight of your construct and on the total weight you want to lift.
Installation of the script#
- copy the content of the config.json file and paste it on the remote control (right click on the remote control -> advanced -> paste lua configuration from clipboard)
Lua parameters#
DEBUG: if set to true, the script will print debug messages in the chatShowParentingWidget: if set to true, the script will display a widget showing the parenting of the elevatorShowControlUnitWidget: if set to true, the script will display the default control unit widgetYawSpeedFactor: the speed multiplier for auto yaw.StrafeSpeedFactor: the speed multiplier when strafing. adjust it depending on how many engines you have on the sides
Usage#
Bookmarks#
You can set bookmarks to save altitudes with a name. Edit the script and go to Unit > OnStart, you will see a Bookmark list (table) at the top of the script. You can edit the list to add your custom points. The first element will be used ad the base altitude when the elevator is landed on the floor.
Navigating using bookmarks :
- you can navigate in the list in the HUD with your keyboard keys arrows up and down
- pressing the key arrow right will start the travel to the selected bookmark
Current selected bookmark is displayed in blue, the current bookmark the elevator is going to is displayed in green.
Chat Command#
- open the "lua" chat channel and type
goto:<altitude>to go to the specified altitude with<altitude>the altitude in meters, if the altitude is missing or invalid, it will send you theBaseAltitude
Coming Soon#
- support for emitter to be able to send a signal to a specific channel to close a door to lock the elevator in position
- screen support to display position informations and bookmarks and navigate by clicking on it

