When you put the sleep command into the activation field for a trigger, you always get "Error 'Generic error' in expression"
The Activation script still seems to work flawless. But it display the error when "showScriptErrors" is on.
When you put the sleep command into the activation field for a trigger, you always get "Error 'Generic error' in expression"
The Activation script still seems to work flawless. But it display the error when "showScriptErrors" is on.
--> Error displays when trigger is set off.
From ARMA 2 experience, you cannot use 'sleep' inside a trigger. So I guess this is by design.
If you need to use sleep, then in act field of the trigger, call for an external sqf instead. Or use something like spawn{sleep 1}... I dont know how to use spawn, but vaguely remember someone use it like that.
Well, what you said sounds pretty reasonable.
for example "[] spawn {sleep 2; // do something};" works perfect.
I guess this Issue is nonsense then. My bad.