jcae2798 132 Posted August 24, 2016 Does waituntil work similar to triggers? Or are Triggers more forgiving when it comes to performance? For example, i use the following code a lot in my dynamic mission designs, but wondering if i should consider rewriting to use triggers instead? WaitUntil {sleep 10; //CODE}; Where the code is usually waiting until player is within a certain distance of a position. But i use it for other code conditions as well. Sometimes depending on the code, i'll change the sleep command to something longer, like 25+ seconds, or shorted, within 5 seconds. I know this helps. Thanks 1 Share this post Link to post Share on other sites
fn_Quiksilver 1636 Posted August 24, 2016 trigger is 0.5s loop, but IIRC it is run in-engine so it would be an order of magnitude more friendly than an all-else-equal clone run in SQF scripting language. Triggers are designed for use with editor interface, and to be newbie-friendly. If you can script SQF and have the time/energy, IMO its better to design your own trigger system. 1 Share this post Link to post Share on other sites
jcae2798 132 Posted August 24, 2016 Thanks for the info. This is helpful. Share this post Link to post Share on other sites