Jump to content
Sign in to follow this  
Toyguy

Timing Commands in Triggers?

Recommended Posts

Is it true that timing commands, like WaitUntil, don't function in Triggers? I had a Trigger set to go off only on a Condition (Activation and Type set to None). The Condition was simply time >10 && Arty_Avail; I had set Arty_Avail to true in another units Init box.

The On Act contained [["artillery_barrage"], player, [[Mortar, [7,9]]], [true]] call BIS_SOM_addSupportRequestFunc; Arty_Avail=False; Arty_Used=time

The On Dea contained WaitUntil {time > Arty_Used + 300}; Arty_Avail=True;

What I expected was for the Trigger to activate after 10 secs, and populate a support request on the Comm menu. That worked fine.

I then expected it to wait 5 mins and then put another support request on the menu. Instead, it immediately started popping them as fast as it could go. It appeared to be completely ignoring the WaitUntil statement. Is this known behavior?

Thanks!

Dave

Share this post


Link to post
Share on other sites

You cant sleep or waituntil directly in a trigger, you need to put it inside a spawn.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×