From a093bd2190e932ccf4b16d80011f2660c3ee99b2 Mon Sep 17 00:00:00 2001 From: second_coming Date: Mon, 11 Apr 2016 14:56:31 +0100 Subject: [PATCH] fix --- scripts/occupationVehicle.sqf | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/occupationVehicle.sqf b/scripts/occupationVehicle.sqf index da67583..89a3688 100644 --- a/scripts/occupationVehicle.sqf +++ b/scripts/occupationVehicle.sqf @@ -122,8 +122,6 @@ if(_vehiclesToSpawn >= 1) then if(_vehicleRole == "Driver") then { _unit = [_group,_spawnLocation,"assault","random","bandit","Vehicle"] call DMS_fnc_SpawnAISoldier; - [_unit] joinSilent grpNull; - [_unit] joinSilent _group; _unit disableAI "TARGET"; _unit disableAI "AUTOTARGET"; _unit disableAI "AUTOCOMBAT"; @@ -149,17 +147,13 @@ if(_vehiclesToSpawn >= 1) then if(_vehicleRole == "Turret") then { _unit = [_group,_spawnLocation,"assault","random","bandit","Vehicle"] call DMS_fnc_SpawnAISoldier; - [_unit] joinSilent grpNull; - [_unit] joinSilent _group; _unit moveInTurret [_vehicle, _vehicleSeat]; _unit setVariable ["DMS_AssignedVeh",_vehicle]; _unitPlaced = true; }; if(_vehicleRole == "CARGO") then { - _unit = [_group,_spawnLocation,"assault","random","bandit","Vehicle"] call DMS_fnc_SpawnAISoldier; - [_unit] joinSilent grpNull; - [_unit] joinSilent _group; + _unit = [_group,_spawnLocation,"assault","random","bandit","Vehicle"] call DMS_fnc_SpawnAISoldier; _unit assignAsCargo _vehicle; _unit moveInCargo _vehicle; _unit setVariable ["DMS_AssignedVeh",_vehicle];