diff --git a/RandFramework/Missions/hvtMission.sqf b/RandFramework/Missions/hvtMission.sqf index 7b5e5e92..2fef3fba 100644 --- a/RandFramework/Missions/hvtMission.sqf +++ b/RandFramework/Missions/hvtMission.sqf @@ -61,7 +61,7 @@ MISSION_fnc_CustomMission = { //This function is the main script for your missio _sInformant1Name = format["objInformant%1",_iTaskIndex]; - _objInformant = [createGroup _sideToUse, _infClassToUse, [0,0,500], [], 0, "NONE"] call TRGM_GLOBAL_fnc_createUnit; + _objInformant = [createGroup _sideToUse, _infClassToUse, [0,0,500], [], 0, "NONE", true] call TRGM_GLOBAL_fnc_createUnit; _objInformant allowDamage false; _objInformant setVariable [_sInformant1Name, _objInformant, true]; _objInformant setVariable ["taskIndex",_iTaskIndex, true]; diff --git a/RandFramework/Missions/meetingAssassinationMission.sqf b/RandFramework/Missions/meetingAssassinationMission.sqf index f9592526..81394105 100644 --- a/RandFramework/Missions/meetingAssassinationMission.sqf +++ b/RandFramework/Missions/meetingAssassinationMission.sqf @@ -82,16 +82,16 @@ MISSION_fnc_CustomMission = { //This function is the main script for your missio if (!isNil "_direction") then { _objVehicle setDir (_direction); }; - _guardUnit1 = [(createGroup TRGM_VAR_EnemySide), selectRandom _HVTGuys,_poshVehPos,[],0,"NONE"] call TRGM_GLOBAL_fnc_createUnit; + _guardUnit1 = [(createGroup TRGM_VAR_EnemySide), selectRandom _HVTGuys,_poshVehPos,[],0,"NONE", true] call TRGM_GLOBAL_fnc_createUnit; } else { _flatPos = nil; _flatPos = [getPos _objectiveMainBuilding, 10, 50, 5, 0, 0.5, 0,[],[getPos _objectiveMainBuilding,getPos _objectiveMainBuilding]] call TRGM_GLOBAL_fnc_findSafePos; if ((_flatPos select 0) > 0) then { - _guardUnit1 = [(createGroup TRGM_VAR_EnemySide), selectRandom _HVTGuys,_flatPos,[],0,"NONE"] call TRGM_GLOBAL_fnc_createUnit; + _guardUnit1 = [(createGroup TRGM_VAR_EnemySide), selectRandom _HVTGuys,_flatPos,[],0,"NONE", true] call TRGM_GLOBAL_fnc_createUnit; } else { - _guardUnit1 = [(createGroup TRGM_VAR_EnemySide), selectRandom _HVTGuys,getPos _objectiveMainBuilding,[],20,"NONE"] call TRGM_GLOBAL_fnc_createUnit; + _guardUnit1 = [(createGroup TRGM_VAR_EnemySide), selectRandom _HVTGuys,getPos _objectiveMainBuilding,[],20,"NONE", true] call TRGM_GLOBAL_fnc_createUnit; }; }; (group _guardUnit1) setBehaviour 'CARELESS'; diff --git a/RandFramework/Server/objectives/fn_setATMineEvent.sqf b/RandFramework/Server/objectives/fn_setATMineEvent.sqf index 5b41e0e0..597eb6ea 100644 --- a/RandFramework/Server/objectives/fn_setATMineEvent.sqf +++ b/RandFramework/Server/objectives/fn_setATMineEvent.sqf @@ -52,12 +52,12 @@ if (_currentATFieldPos select 0 != 0) then { _group = createGroup TRGM_VAR_FriendlySide; _sUnitType = selectRandom (call FriendlyCheckpointUnits); - _guardUnit1 = [_group, _sUnitType,_pos1,[],0,"NONE"] call TRGM_GLOBAL_fnc_createUnit; + _guardUnit1 = [_group, _sUnitType,_pos1,[],0,"NONE", true] call TRGM_GLOBAL_fnc_createUnit; doStop [_guardUnit1]; _guardUnit1 setDir (floor random 360); [_guardUnit1,"WATCH","ASIS"] call BIS_fnc_ambientAnimCombat; - _guardUnit2 = [_group, _sUnitType,_pos2,[],0,"NONE"] call TRGM_GLOBAL_fnc_createUnit; + _guardUnit2 = [_group, _sUnitType,_pos2,[],0,"NONE", true] call TRGM_GLOBAL_fnc_createUnit; doStop [_guardUnit2]; _guardUnit2 setDir (floor random 360); [_guardUnit2,"WATCH","ASIS"] call BIS_fnc_ambientAnimCombat;