kibaBG 49 Posted March 20, 2023 After lots of tries to make scripted waypoint to work I tried to just use the command "move", and A3 said NOPE . if (isServer) then { for "_i" from 1 to 10 do { _rPos = getMarkerPos (selectRandom ["inf_mrk_1","inf_mrk_2","inf_mrk_3","inf_mrk_4"]); _sPos = [_rPos, 0, 50, 0, 0, 0, 0] call BIS_fnc_findSafePos; _grp = [_sPos, east,[ "DSF_IGF_SquadLeader", "DSF_IGF_Grenadier", "DSF_IGF_AutomaticRifleman", "DSF_IGF_RPG7Soldier", "DSF_IGF_Engineer", "DSF_IGF_RPG7Grenadier", "DSF_IGF_AutomaticRifleman", "DSF_IGF_Medic", "DSF_IGF_Marksman" ]] call BIS_fnc_spawnGroup; _grp setBehaviourStrong "AWARE"; {_x setCombatMode "RED"} forEach units _grp; _grp setSpeedMode "FULL"; _grp setFormation "LINE"; _grp deleteGroupWhenEmpty true; _AtkMrkOne = selectRandom ["atk_mrk_1","atk_mrk_2","atk_mrk_3","atk_mrk_4","atk_mrk_5","atk_mrk_6"]; _grp move (getMarkerPos _AtkMrkOne); sleep 120; }; }; Groups just spawn and stay where they are, not moving at all. Share this post Link to post Share on other sites
Ibragim A 148 Posted March 20, 2023 this works fine for me: if (isServer) then { for "_i" from 0 to 5 do { _rPos = getMarkerPos (selectRandom ["marker_0","marker_0"]); _sPos = [_rPos, 0, 50, 0, 0, 0, 0] call BIS_fnc_findSafePos; _grp = [_sPos, west,[ typeOf player, typeOf player, typeOf player ]] call BIS_fnc_spawnGroup; _grp setBehaviourStrong "AWARE"; {_x setCombatMode "RED"} forEach units _grp; _grp setSpeedMode "FULL"; _grp setFormation "LINE"; _grp deleteGroupWhenEmpty true; _AtkMrkOne = selectRandom ["marker_1","marker_2"]; _grp move (getMarkerPos _AtkMrkOne); }; }; Check your markers 1 Share this post Link to post Share on other sites
kibaBG 49 Posted March 21, 2023 Of course the markers names are wrong, thanks a lot. 👍 Share this post Link to post Share on other sites
Larrow 2800 Posted March 21, 2023 On 3/20/2023 at 3:14 PM, kibaBG said: {_x setCombatMode "RED"} forEach units _grp; setCombatMode is a group command, not for single units. If you want it for single units use setUnitCombatMode instead. 1 Share this post Link to post Share on other sites
kibaBG 49 Posted March 21, 2023 @Larrow Can I use waypoints to local group? When I try to add waypoint to local group it does not do anything. Share this post Link to post Share on other sites