Page 1 of 1

Small problem dealing with triggers and possibly script???

Posted: Mon Mar 15, 2004 8:02 pm
by dooguesgoober4
Here is a picture of the triggers i have set for a "secret" hatch that opens when the triggers are used....

Image

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
And for some reason...the trigger does not work in game...can anyone help me????

Posted: Mon Mar 15, 2004 10:21 pm
by bighoss
Umm maybe try making the trigger one big trigger over the hatch instead of three seperate trigger brushes.

Posted: Mon Mar 15, 2004 10:35 pm
by dooguesgoober4
That could possibly be it Hoss because in the game....only one trigger works ive found out....ill have to try that