execute in 3den editor
CODI_3DEN_fnc_createCityPatrolGroup = {
private["_pos","_unit","_wp","_p","_wpType"];
_pos = _this select 0;
_pos set [2, 0];
_unit = create3DENEntity ["Object", "O_Soldier_TL_F", _pos];
_p = [_pos select 0, _pos select 1, 0];
_p set [1, (_p select 1)-2];
_unit = (group _unit) create3DENEntity ["Object", "O_Soldier_AR_F", _p];
_p set [1, (_p select 1)-2];
_unit = (group _unit) create3DENEntity ["Object", "O_Soldier_LAT_F", _p];
_p set [1, (_p select 1)-2];
_unit = (group _unit) create3DENEntity ["Object", "O_medic_F", _p];
(group _unit) set3DENAttribute ["combatMode", "RED"];
(group _unit) set3DENAttribute ["behaviour", "SAFE"];
(group _unit) set3DENAttribute ["speedMode", "LIMITED"];
G = group _unit;
for "_i" from 1 to 10 do
{
_p = [[[_pos, 100]], ["water", "out"]] call BIS_fnc_randomPos;
_wpType = "MOVE";
if (_i == 10) then
{
_wpType = "CYCLE";
};
_wp = (group _unit) create3DENEntity ["Waypoint", _wpType, _p];
_wp set3DENAttribute ["timeout", [0,0,0]];
};
};
[getPos get3DENCamera] call CODI_3DEN_fnc_createCityPatrolGroup;