Jump to content
Sign in to follow this  
HashBanana

Run script in waypoint condition and wait for completion

Recommended Posts

Hi all,

following line in a waypoint condition field does not work:

scriptDone ([grp1] execVM "ejectGrp.sqf")

What am i doing wrong? The script itself runs and returns.

The waypoint should be activated as soon as the script is finished.

If I run the script from a trigger (Radio Alpha, Vehicle in Area, ...) the script runs and

scriptDone(ejectScript)

works.

Share this post


Link to post
Share on other sites

My guess is that your trigger condition starts the script every time it checks if it's true, and therefore it's always evaluated to false. Your second condition does not start the script, and therefore it works. Try your trigger condition as a waypoint condition, checking the script handle instead of starting the script.

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  

×