ok please help me out guys...
I would just like to have a trigger that activates every 60 seconds.. I have tried everything, maybe I'm just stupid but please.. help me out
Thanks in advance...
Nicolai
ok please help me out guys...
I would just like to have a trigger that activates every 60 seconds.. I have tried everything, maybe I'm just stupid but please.. help me out
Thanks in advance...
Nicolai
Work in Progress
Quick answer. Use more than 1 trigger. 1st 60sec, 2nd 120 sec, 3rd 180 sec, and so on. Or you try a script for this.
I seem to remember that triggers by default check their own status once per second. That sounds a little low to me, so that's probably not true, but let's say it is (it's bound to be some value).
I think that instead of directly using a trigger, that maybe you should loop a script that checks the status of a trigger each 60 seconds, and controls the activity from there.
So you have your trigger set up, named, and you have a script that does (something like):
Code:while {true} do { if (triggerName) then { ...code... }; sleep 60; };
Last edited by DMarkwick; Feb 21 2010 at 18:59.
Fire And Smoke for ArmA2: JTD_FireAndSmoke v0.2
For better future effects addons, please vote for this ticket.
I will try this DMarkwick, thanks
Question: The script should be executed by something, the trigger itself?
Last edited by Nicolai; Feb 21 2010 at 19:13.
If you don't want to script a trigger then an easy way is as follows.
In the init box of a game logic or unit setup up a variable ie var1=true
Then set your trigger conditions, anyone present not present ect and set all timers to 60 and make sure you select repeating
Then put the following code in the correct boxes
Cond this and var1
On Act var1=false
On Dea var1=true
Con can also be just var1 if you don't need all the triggers settings.
Last edited by F2k Sel; Jun 4 2010 at 11:12.
that is simply brilliant, can't understand why I can't come up with something simple like that. Thanks all for your help
Nicolai
condition:
Code:time % 60 == 0
can a trigger only be activated for a couple of times? It works perfectly, for about 6 times, after then, the trigger is no longer activated. Suggestions?
Thanks
Nicolai