Here is a picture of the triggers i have set for a "secret" hatch that opens when the triggers are used....
And here is a copy of the script that is used to move the trigger....
Code: Select all
//---------------------------------------------
// Manhole_Cover2
//---------------------------------------------
manhole_cover2_mover:
while(1) // Forever
{
$manhole_cover2_trigger waittill trigger
$manhole_cover2 time 2
$manhole_cover2 playsound ("door_metal_open_move" + (randomint(3) + 1))
$manhole_cover2 rotateXup -90
$manhole_cover2 waitmove
$manhole_cover2_trigger waittill trigger
$manhole_cover2 playsound ("door_metal_close_move" + (randomint(1) + 1))
$manhole_cover2 rotateXdown -90
$manhole_cover2 waitmove
$manhole_cover2 playsound ("door_metal_close_stop" + (randomint(2) + 1))
}
// removed a goto and replaced it with a while loop
end

