Arma 3
LAMBS_Danger.fsm
BrGuardian 27 Dec, 2021 @ 11:56am
A Sqf problem with Task Camp
So, it's simple:
I'm triyng to assign a lambs waypoint to a group of units that was spawned with a module, but I have some problems when I try to assign the lambs_wp_fnc_taskCamp with the setWaypointScript .

What will be put in the units Init :
params ["_grp"];
private _wp = _grp addWaypoint [position _grp,0];
_wp setWaypointType "SCRIPTED";
_wp setWaypointScript "script-waypoint.sqf";

The script-waypoint.sqf :
params ["_grp"];
private _grp = group "rhs_msv_emr_rifleman";
private _led = leader "rhs_msv_emr_rifleman";
[_led, position _led, 50] call lambs_wp_fnc_taskCamp

What should I use to make the spawned AI do the Task Camp?