From 97e85393cc6b9d0ee2245906717220ad5df49322 Mon Sep 17 00:00:00 2001 From: "DESKTOP-UH65DCE\\MusTanG" Date: Thu, 27 Apr 2017 19:25:05 -0500 Subject: [PATCH] Update code --- .../addons/a3_dms/scripts/fn_OnKilled.sqf | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/@ExileServer/addons/a3_dms/scripts/fn_OnKilled.sqf b/@ExileServer/addons/a3_dms/scripts/fn_OnKilled.sqf index 7e3ca5f..20eb6b3 100644 --- a/@ExileServer/addons/a3_dms/scripts/fn_OnKilled.sqf +++ b/@ExileServer/addons/a3_dms/scripts/fn_OnKilled.sqf @@ -105,11 +105,7 @@ if (!(_grpUnits isEqualTo []) && {(leader _grp) isEqualTo _unit}) then private _av = _unit getVariable ["DMS_AssignedVeh",objNull]; if (!isNull _av) then { - if(dynamicSimulationSystemEnabled)then - { - _av enableDynamicSimulation true; - } - else + if!(dynamicSimulationEnabled _av)then { _av enableSimulationGlobal true; }; @@ -156,14 +152,9 @@ if (!isNull _av) then [_av, 1] remoteExecCall ["lock", _av]; }; - //_av call ExileServer_system_simulationMonitor_addVehicle; - - if(dynamicSimulationSystemEnabled)then - { - _av enableDynamicSimulation true; - } - else + if!(dynamicSimulationEnabled _av)then { + _av call ExileServer_system_simulationMonitor_addVehicle; _av enableSimulationGlobal true; }; _av setVariable ["ExileMoney",0,true];