Jump to content
Sign in to follow this  
Mladja-ArmASerbia

addAction & goto in sqs

Recommended Posts

have an problem with goto and addaction.

_mig29r73 = v_mig29 addAction ["Refuel", "goto "mig29r73"];

#mig29r73
~0.5

v_mig29 action ["engineOff", v_mig29];
v_mig29 setFuel 1;
v_mig29 setDammage 0;

goto "end";

#end
v_mig29 removeAction _mig29r73

When enter in trigger my action Refuel dont appear, script go immediately to mig29r73 and execute them. Its and SQS file because SQF dont support goto.

Edited by mladjaSRB

Share this post


Link to post
Share on other sites

I don't see why you even need goto. All you tell the script is to step down one line. If you're worried about extra space which the addActions occupy make a new folder for them.

To get back to your original question, the trigger's going to execute everything in its init line and "goto mig232323" won't work. Make a seperate SQF script for it and put only the addAction in the trigger.

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  

×