Home   Help Search Login Register  

Author Topic: Trigger timer  (Read 421 times)

0 Members and 1 Guest are viewing this topic.

Jim666

  • Guest
Trigger timer
« on: 29 Mar 2005, 17:28:01 »
Ok, ive got a trigger, and ive got it set to activate at a certain time. 5400 seconds in this case (Dont ask..)

I want this timer to stop after another trigger or a script is activated. is that possible and if so how would i go about doing this?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Trigger timer
« Reply #1 on: 29 Mar 2005, 18:17:47 »
init.sqs
timeDone=false
stopTime=false

Trigger 1
Countdown:     5400   5400    5400
Condition:  as you like
On Activation:   timeDone=true

Trigger 2
Condition:   timeDone and (not stopTime)
On activation:   as you like

Trigger 3
Condition:  as you like
On Activation:   stopTime=true

Note that OFP does not count time accurately:  a second in the game is not necessarily a second in the real world.    Experiment to get what you want.   Try using a dayTime command rather than a trigger timer.  
Plenty of reviewed ArmA missions for you to play