Jump to content

Recommended Posts

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

  • Like 1

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites

Thanks for the info.  This is helpful.

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

×