David77 10 Posted September 11, 2013 I'm making a SP mission soon & I've limited time atm to do the needed research. In any case, what's the best way to return all of the opfor units on the map, infantry & manned vehicles? I basically need all of the opfor units on the map to move to the players position once a condition is met. Thanks. Regards, David Share this post Link to post Share on other sites
kylania 568 Posted September 11, 2013 {if (side _x == opfor) then { _x doMove (position player)} forEach allUnits; Share this post Link to post Share on other sites
David77 10 Posted September 11, 2013 Thank you, this works nicely. One more thing; These opfor units have set waypoints initially. However they keep their "limited" patrol speed (from the set waypoints) when they start to move to the players position. How can I set the units speed to normal when they start to move to the players position? I've noticed setwaypointspeed, but the units are moving to the player now & not any specific waypoint. I've managed to take them off of safe mode (from the initial Wps)and put them into "aware" & also set their ROE to engage at will. I just need them to move a little faster =). Here's what I've so far: onMapSingleClick "player setpos _pos"; Alerted=False; Detected=false; While {!Alerted} Do { If (Detected) Then { Alerted=True; { if (side _x == opfor) then { _x setBehaviour "AWARE"; _x setCombatMode "RED"; }; } forEach allUnits; While {True} Do { { if (side _x == opfor) then { _x doMove (GetPosATL player); }; } forEach allUnits; Sleep 10; Hint "Phase #2"; }; }; Hint "Phase #1"; Sleep 2; }; Share this post Link to post Share on other sites
kylania 568 Posted September 11, 2013 I'd probably just delete their waypoints once they get to alerted mode instead? Share this post Link to post Share on other sites