Here is a description of how the subway car in my level "Energy Mine on Parux" works. The subway car is made up of 5 parts 1. A switch to trigger the elevator. 2. A move_floor elevator for the door. 3. A morph_move1 elevator for the subway car. 4. A scroll_floor elevator to make the floors in the subway car move with the subway car. 5. A scroll_ceiling elevator to make the ceilings in the subway car move with the subway car. |
|
class: trigger toggle | ||||
entity_mask: 2147483648 | This # means that the player can activate the trigger | |||
event: 1024 | This # will be sent to the subway_car sector when the trigger is activated | |||
event_mask: 48 | This # means the trigger is activated when it is nudged | |||
client: subway_car |
class: elevator move_floor | ||||
speed: 10 | ||||
stop: 66 hold | The height of the floor when the door is down | |||
stop: 68 hold | The height of the floor when the door is up |
class: elevator morph_move1 | This moves the walls of the subway car | |||
flags: 1 | This flag will make the player move with the scrolling floor | |||
angle: 0 | ||||
speed: 50 | ||||
event_mask: 1024 | When this # is recieved , the elevator will move to the next stop | |||
stop: 0 hold | ||||
message: 0 scw4 goto_stop 0 | Open the door | |||
message: 0 subway_car(13) done | Reset the switch | |||
message: 0 subway_car(12) clear_bits 3 10 | Let the player walk through the door | |||
stop: 0.01 0 | ||||
message: 1 scw4 goto_stop 1 | Shut the door | |||
message: 1 subway_car(12) set_bits 3 10 | Block the player from walking through the door | |||
stop: 1492 hold | ||||
message: 2 scw4 goto_stop 0 | Open the door | |||
message: 2 subway_car(13) done | Reset the switch | |||
message: 2 subway_car(12) clear_bits 3 10 | Let the player walk through the door | |||
stop: 1491.99 0 | ||||
message: 3 scw4 goto_stop 1 | Shut the door | |||
message: 3 subway_car(12) set_bits 3 10 | Block the player from walking through the door | |||
slave: subway_track | Make these sectors move with this one | |||
slave: scp1 | ||||
slave: scp2 | ||||
slave: scp3 | ||||
slave: scp4 | ||||
slave: scp5 | ||||
slave: scp6 | ||||
slave: scp7 | ||||
slave: scp8 | ||||
class: elevator scroll_floor | This moves the floors of the subway car | |||
angle: 0 | ||||
speed: 50 | ||||
event_mask: 1024 | When this # is recieved, the floor will scroll to the next stop | |||
stop: 0 hold | ||||
stop: 1492 hold | ||||
slave: scw1 | ||||
slave: scw2 | ||||
slave: scw3 | ||||
slave: scw4 | ||||
class: elevator scroll_ceiling | This moves the ceilings of the subway car | |||
angle: 0 | ||||
speed: 50 | ||||
event_mask: 1024 | When this # is recieved, the ceiling will scroll to the next stop | |||
stop: 0 hold | ||||
stop: 1492 hold | ||||
slave: scw1 | ||||
slave: scw2 | ||||
slave: scw3 | ||||
slave: scw4 |