Predefined Functions
There are a number of script functions provided by the simulator. Currently there's only a single script for elevator doors - see the Simple building (noted at the bottom of this page) for an example. These functions can be used by putting this line in your script:
<Include data/scripts/elevator_doors.txt>
You'll then be able to use some predefined door functions:
1. elevdoor_single - creates a
single-slide elevator door.
Syntax: elevdoor_single(door_number,
texture, side_texture, thickness, CenterX, CenterZ, width,
height, door_direction, movement_direction, speed,
is_shaft_door)
Door_Direction is either "left", "right", "front" or "back" and is the direction the doors face (torwards the outside of the elevator). Movement_direction is the direction the door should move.
2. elevdoor_center - creates a
center-open elevator door.
Syntax: elevdoor_center(door_number,
texture, side_texture, thickness, CenterX, CenterZ, width,
height, door_direction, speed, is_shaft_door)
3. elevdoor_center_classic -
creates a center-open elevator door with a partially open
interior door.
Syntax: elevdoor_center_classic(door_number,
texture, side_texture, thickness, CenterX, CenterZ, width,
height, door_direction, speed, is_shaft_door)
4. elevdoor_dualspeed_left -
creates a dual-speed door that opens to the left
Syntax: elevdoor_dualspeed_left(door_number,
texture, side_texture, thickness, CenterX, CenterZ, width,
height, door_direction, speed, is_shaft_door)
5. elevdoor_dualspeed_right
- creates a dual-speed door that opens to the right
Syntax: elevdoor_dualspeed_right(door_number,
texture, side_texture, thickness, CenterX, CenterZ, width,
height, door_direction, speed, is_shaft_door)
6. elevdoor_center_dualspeed
- creates a dual-speed center-open door
Syntax: elevdoor_center_dualspeed(door_number,
texture, side_texture, thickness, CenterX, CenterZ, width,
height, door_direction, speed, is_shaft_door)