From 54d1cc87be484eebfc2f5fb96bc0c37870232b60 Mon Sep 17 00:00:00 2001 From: Torndeco Date: Tue, 28 Mar 2017 01:07:56 +0100 Subject: [PATCH] Update ExileServer_object_construction_database_load.sqf Some of the exile construction items are configured correctly otherwise revert to manually adding them to a array --- .../ExileServer_object_construction_database_load.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Exile Mission File/Exile_Server_Overrides/ExileServer_object_construction_database_load.sqf b/Exile Mission File/Exile_Server_Overrides/ExileServer_object_construction_database_load.sqf index e8e5f63..7a2331b 100644 --- a/Exile Mission File/Exile_Server_Overrides/ExileServer_object_construction_database_load.sqf +++ b/Exile Mission File/Exile_Server_Overrides/ExileServer_object_construction_database_load.sqf @@ -12,7 +12,7 @@ private["_constructionID","_data","_position","_vectorDirection","_vectorUp","_constructionObject","_damageLevel","_public","_pinCode"]; _constructionID = _this; //LIST ANY OBJECT THAT NEEDS TO BE DYNAMICALY CREATED HERE! -_DynamicObjects = ["Exile_Construction_ConcreteDoor_Static", "Exile_Construction_ConcreteGate_Static", "Exile_Construction_WoodGate_Static", "Exile_Construction_WoodDoor_Static", "Exile_Construction_ConcreteWindowHatch_Static", "Exile_Construction_WoodGate_Reinforced_Static", "Exile_Construction_WoodDoor_Reinforced_Static", "Exile_Construction_ConcreteFloorHatch_Static", "Exile_Item_BaseCamera_Static"]; +private _DynamicObjects = ["Exile_Construction_ConcreteDoor_Static", "Exile_Construction_ConcreteGate_Static", "Exile_Construction_WoodGate_Static", "Exile_Construction_WoodDoor_Static", "Exile_Construction_ConcreteWindowHatch_Static", "Exile_Construction_WoodGate_Reinforced_Static", "Exile_Construction_WoodDoor_Reinforced_Static", "Exile_Construction_ConcreteFloorHatch_Static"]; //^^^ _data = format ["loadConstruction:%1", _constructionID] call ExileServer_system_database_query_selectSingle; _position = [_data select 4, _data select 5, _data select 6]; @@ -38,7 +38,7 @@ if !(_pinCode isEqualTo "000000") then _constructionObject setVariable ["ExileAccessCode", _pinCode]; _constructionObject setVariable ["ExileIsLocked", (_data select 13), true]; }; -if (typeOf _constructionObject in _DynamicObjects) then +if ((getNumber(configFile >> "CfgVehicles" >> (_data select 1) >> "exileRequiresSimulation") isEqualTo 1) || (typeOf _constructionObject in _DynamicObjects)) then { _constructionObject enableDynamicSimulation true; };