Search the Community
Showing results for tags 'spawn group'.
Found 1 result
-
Hi, I am trying to spawn a boat with 4 soldiers inside. //boat patrol private _boatgrp1 = createGroup [east, true]; private _boat1 = [[7229.31,19598.3,0],350,"O_G_Boat_Transport_01_F",_vehgrp1] call BIS_fnc_spawnVehicle; private _boatmen = [(getPos _boat1), EAST, ["O_Soldier_F","O_Soldier_F","O_Soldier_F" ,"O_Soldier_F"]] call BIS_fnc_spawnGroup; {_x moveInCargo _boat1;} forEach units _boatmen; { _x setSkill ["general",1]; _x setSkill ["courage",1]; _x setSkill ["aimingAccuracy", 0.15]; _x setSkill ["aimingShake", 0.50]; _x setSkill ["aimingSpeed", 0.50]; _x setSkill ["reloadSpeed", 0.50]; } forEach (units _boatmen); _vehgrp1 setBehaviourStrong "AWARE"; _vehgrp1 allowFleeing 0; [_vehgrp1, 0] setWaypointBehaviour "AWARE"; private _boatwp1 = _boatgrp1 addWaypoint [[7229.31,19598.3,0],-1]; _boatwp1 setWaypointType "MOVE"; [_boatgrp1, 1] setWaypointBehaviour "AWARE"; private _boatwp2 = _boatgrp1 addWaypoint [[7512.96,19268,0],-1]; _boatwp2 setWaypointType "MOVE"; [_boatgrp1, 2] setWaypointBehaviour "AWARE"; private _boatwp3 = _boatgrp1 addWaypoint [[7229.31,19598.3,0],-1]; _boatwp3 setWaypointType "CYCLE"; [_boatgrp1, 2] setWaypointBehaviour "AWARE"; Something is wrong because only the boat and driver spawn and not the infantry men. 🙄