Wiki 1558 Posted April 8, 2011 hi guys. i have a problem here: i have 4 "move.sqs" script (move1 to move4) that must be executed when guys have fastroped from the chopper (see also: aduke helo pack or norrin fastrope). my problem is: when there is only 1 chopper, the script executes well. when there are 4 choppers (like in my mission), sometimes all of the 4 scripts execute, OR only 1 of them, OR 2 of them...etc... I don't understand why sometimes the 4 of them work, and sometimes, only a few of them work. is there a way to have the 4 of them always work? maybe it is their name that are too similar? in which case i sould rename the script? if anyone has already encountered this problem, or know how to solve it, it would be very kind of you. Wiki Share this post Link to post Share on other sites
ProfTournesol 956 Posted April 8, 2011 You should post the move.sqs script here. Share this post Link to post Share on other sites
Wiki 1558 Posted April 8, 2011 here is the script: ;chopper_move.sqs _heli = _this select 0; _group = group _heli; ~2 _heli flyInHeight 75; _waypoint0 = _group addWaypoint [getMarkerPos "WP1", 15]; _waypoint0 setWaypointType "MOVE"; _waypoint0 setWaypointSpeed "Normal"; _waypoint1 = _group addWaypoint [getMarkerPos "WP2", 15]; _waypoint1 setWaypointType "MOVE"; exit so, this is "move1.sqs" and i have 4 scripts (move1 to move 4, with WP1 and WP2 in the 1st one, and WP3 and WP4 in the 2nd one etc...) Share this post Link to post Share on other sites
ProfTournesol 956 Posted April 8, 2011 IMO this is a mix between sqs and sqf syntax. The ";" at the end of the line is sqf syntax. Try renaming the script move.sqf and launch it with execVM command. Share this post Link to post Share on other sites
t_d 47 Posted April 8, 2011 That's valid sqs code (although the ; is not needed at the end) and cant be executed as sqf Share this post Link to post Share on other sites
ProfTournesol 956 Posted April 8, 2011 That's valid sqs code (although the ; is not needed at the end) and cant be executed as sqf Oh, ok, so i don't see any trouble in the script. How do you launch it ? Share this post Link to post Share on other sites
dissaifer 10 Posted April 8, 2011 I don't know .sqs much but you may have a variable collision did you try making the variables private? http://community.bistudio.com/wiki/private Share this post Link to post Share on other sites
demonized 20 Posted April 8, 2011 _waypoint0 setWaypointSpeed "Normal"; i think this is your problem, use NORMAL instead, as it may be case sensitive. also if still not working, add this after :wp1 move: _waypoint0 setWaypointSpeed "NORMAL"; so they are identical. Share this post Link to post Share on other sites
Wiki 1558 Posted April 8, 2011 here is a link to my mission http://www.armaholic.com/page.php?id=13747 if you could please unpbo it and see about it, would be kind of you. ---------- Post added at 10:36 PM ---------- Previous post was at 09:26 PM ---------- by the way, this is how the script is executed nul = [super61, 18, "move1.sqs"] execVM "\ad_helos\FastRope\scripts\fast_rope_AI_pilot.sqf" Share this post Link to post Share on other sites
Wiki 1558 Posted April 9, 2011 ?? what does nvm stand for? what did you want to say? Share this post Link to post Share on other sites