diff --git a/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E.sqf b/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E.sqf index 8e91278..5c78252 100644 --- a/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E.sqf +++ b/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E.sqf @@ -51,7 +51,14 @@ private _objs = _export apply { // Create the object private _obj = createVehicle [_x select 0, [0,0,0], [], 0, "CAN_COLLIDE"]; - _obj enableSimulationGlobal false; + if(dynamicSimulationSystemEnabled)then + { + _obj enableDynamicSimulation true; + } + else + { + _obj enableSimulationGlobal false; + }; // Calculate the object's position using provided relative position private _objPos = [_pos,_x select 1] call DMS_fnc_CalcPos; diff --git a/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_3DEN.sqf b/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_3DEN.sqf index 88d0a06..7c4ccb7 100644 --- a/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_3DEN.sqf +++ b/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_3DEN.sqf @@ -52,7 +52,14 @@ private _objs = _export apply private _object = (_x select 0) createVehicle [0,0,0]; _object setDir (_x select 2); _object setPosATL (_center vectorAdd (_x select 1)); - _object enableSimulationGlobal ((_x select 3) select 0); + if(dynamicSimulationSystemEnabled)then + { + _object enableDynamicSimulation true; + } + else + { + _object enableSimulationGlobal ((_x select 3) select 0); + }; _object allowDamage ((_x select 3) select 1); _object; }; diff --git a/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_3DEN_Convert.sqf b/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_3DEN_Convert.sqf index d793a1d..dac1f2c 100644 --- a/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_3DEN_Convert.sqf +++ b/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_3DEN_Convert.sqf @@ -55,7 +55,14 @@ private _objs = _export apply _object setPosASL ((_x select 1) vectorAdd [0,0,5000]); _object setVectorDirAndUp (_x select 2); - _object enableSimulationGlobal ((_x select 3) select 0); + if(dynamicSimulationSystemEnabled)then + { + _object enableDynamicSimulation true; + } + else + { + _object enableSimulationGlobal ((_x select 3) select 0); + }; _object allowDamage ((_x select 3) select 1); _object; diff --git a/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_3DEN_Static.sqf b/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_3DEN_Static.sqf index 0732d29..426e32b 100644 --- a/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_3DEN_Static.sqf +++ b/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_3DEN_Static.sqf @@ -49,7 +49,14 @@ private _objs = _export apply _object setPosASL (_x select 1); _object setVectorDirAndUp (_x select 2); - _object enableSimulationGlobal ((_x select 3) select 0); + if(dynamicSimulationSystemEnabled)then + { + _object enableDynamicSimulation true; + } + else + { + _object enableSimulationGlobal ((_x select 3) select 0); + }; _object allowDamage ((_x select 3) select 1); _object; diff --git a/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_Convert.sqf b/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_Convert.sqf index 492abe9..52277b7 100644 --- a/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_Convert.sqf +++ b/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_Convert.sqf @@ -52,7 +52,14 @@ if ((isNil "_export") || {!(_export isEqualType [])}) exitWith private _objs = _export apply { private _obj = createVehicle [_x select 0, [0,0,0], [], 0, "CAN_COLLIDE"]; - _obj enableSimulationGlobal false; + if(dynamicSimulationSystemEnabled)then + { + _object enableDynamicSimulation true; + } + else + { + _object enableSimulationGlobal false; + }; private _pos = (_x select 1) vectorAdd [0,0,5000]; diff --git a/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_Static.sqf b/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_Static.sqf index f2798bc..bc522a9 100644 --- a/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_Static.sqf +++ b/@ExileServer/addons/a3_dms/scripts/fn_ImportFromM3E_Static.sqf @@ -46,7 +46,14 @@ if ((isNil "_export") || {!(_export isEqualType [])}) exitWith private _objs = _export apply { private _obj = createVehicle [_x select 0, [0,0,0], [], 0, "CAN_COLLIDE"]; - _obj enableSimulationGlobal false; + if(dynamicSimulationSystemEnabled)then + { + _obj enableDynamicSimulation true; + } + else + { + _obj enableSimulationGlobal false; + }; private _pos = _x select 1;