OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SoldierX on 04 Jun 2003, 00:20:04

Title: trigger activation
Post by: SoldierX on 04 Jun 2003, 00:20:04
i want this trigger to go off after a certain amount of time some U.S. units aren't in the zone but i can't figure out the countdown thing. can anybody help me?
Title: Re:trigger activation
Post by: Sui on 04 Jun 2003, 01:26:56
Try using Timeout instead of countdown.

If you have a not present trigger, and set all three timeout values (min,mid,max) to the same value, the trigger will always wait for that number of seconds after the units aren't in it to go off ;)
Title: Re:trigger activation
Post by: gadolinite on 04 Jun 2003, 18:43:36
I have a better way.

Make a script called "timer.sqs"

counter = 5
#loop
counter = counter - 1
~1
?counter <= 0 : loop

In that trigger in the condition forld put counter == 5 (when counter = 5)

I am using 5 as an example time limit for 5 seconds, adjust your time limit.
Title: Re:trigger activation
Post by: LCD on 04 Jun 2003, 18:54:26
Quote
?counter <= 0 : loop

it shud b

? counter >= 0 : goto "loop"

:P

LCD OUT