I am trying to make an elevator in ET with 1 button in the elevator itself. With a variable (accum 0) I look where the lift is (up/down). If it is down(0) then it should call the trigger move_up, else the trigger move_down. If I call the trigger move_up immediate it works, if I let him check wether the lift is up/down, it is not working. This is the code:
game_manager
{
}
move_platform
{
trigger move_up
{
trigger lift movelift
}
}
lift
{
spawn
{
accum 0 set 0
accum 1 set 0
wait 200
}
trigger movelift
{
accum 0 trigger_if_equal 0 lift move_up
accum 0 trigger_if_equal 1 lift move_down
}
trigger move_up
{
accum 1 set 1
gotomarker level_016 600
accum 1 set 0
accum 0 set 1
}
trigger move_down
{
accum 1 set 1
gotomarker level_001 600
accum 0 set 0
accum 1 set 0
}
}
So probably the problem is situated here:
trigger movelift
{
accum 0 trigger_if_equal 0 lift move_up
accum 0 trigger_if_equal 1 lift move_down
}
But I can’t see why he doesn’t execute the move_up or move_down