I Searched OFPEC and here and can't find a damn thing about this (I really don't have time to look hard enough). Basically, i have a simple script that repeats an animation loop so that they don't get up and change animations.
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#loop1
guy1 switchmove "sitting1";
guy2 switchmove "crouchrest";
guy3 switchmove "effectstandsitdown";
guy4 switchmove "standrest";
~5
//Repeats this part again 3 times
[/QUOTE]
However I'm not great with C++ im still learning it. So I don't know the syntax to break this loop, when another script becomes active. I want this script to exit when another is active, so that they change animation and move about ( i have all the waypoints and such set up) and get in position when they are attacked.
Assume the other script is called "scramble.sqs", and #FormUp is the function inside that script.
I tried <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?!(FormUp = TRUE): goto "exit"
exit[/QUOTE]
and
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#FormUp
goto Loop1exit
....[/QUOTE]
HOME
Reply With Quote



