Home   Help Search Login Register  

Author Topic: Deactivating Triggers  (Read 877 times)

0 Members and 1 Guest are viewing this topic.

GR8X

  • Guest
Deactivating Triggers
« on: 25 Jul 2003, 21:25:25 »
I need to find out how to deactivate one trigger when another is activated.

eg. I have a countdown trigger to loose in 30 seconds and I need to get to another trigger to deactivate the timer and stop me from loosing.

I would also like to know if you could cancel waypoints by activating triggers?

Please help  ;)

Offline .pablo.

  • Former Staff
  • ****
  • When in doubt, empty the magazine.
Re:Deactivating Triggers
« Reply #1 on: 25 Jul 2003, 21:54:29 »
make a trigger:
Condition: true
On Activation: trig1 = true

then in the trigger that is activated first put this:
Condition: trig1 and (any other condition you have)

then in the trigger that is activated second put this:
On Activation: trig1 = false

idk about cancelling waypoints, you can use a move command to make the ai move somewhere though.  so if you wanted to change the waypoint of an ai group put this in the trigger that is changing the waypoint:
On Activation: aigroupname move (getpos waypointname)

you will need to name the group and make a gamelogic/marker and name it waypointname (or whatever name u want, as long as its the same as the move command)

for more info look in the official command reference:
http://www.flashpoint1985.com/docs/comref_102002/comref.html

GR8X

  • Guest
Re:Deactivating Triggers
« Reply #2 on: 25 Jul 2003, 23:19:58 »
 ??? I'm sorry but it just doesn't work I've done what you said...

 :-\ On my mission the countdown to loosing still goes down when I've crosed the trigger to deactivate it!

« Last Edit: 25 Jul 2003, 23:21:07 by GR8X »

GR8X

  • Guest
Re:Deactivating Triggers
« Reply #3 on: 25 Jul 2003, 23:25:28 »
 :tomato: Doh, sorry I just made the trigger wrong. (Stupid me, Stupid!!!) Sorry and thanx