Changed Database error handling, Changed Dynamic Object List
Trying out the Exile Rcon Feature, Made it more clear for people trying to add objects into the database_load.sqf file that are to be spawned using dynamicsimulation.
This commit is contained in:
parent
2fe0144fbc
commit
0b739e3a76
@ -11,6 +11,9 @@
|
|||||||
|
|
||||||
private["_constructionID","_data","_position","_vectorDirection","_vectorUp","_constructionObject","_damageLevel","_public","_pinCode"];
|
private["_constructionID","_data","_position","_vectorDirection","_vectorUp","_constructionObject","_damageLevel","_public","_pinCode"];
|
||||||
_constructionID = _this;
|
_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"];
|
||||||
|
//^^^
|
||||||
_data = format ["loadConstruction:%1", _constructionID] call ExileServer_system_database_query_selectSingle;
|
_data = format ["loadConstruction:%1", _constructionID] call ExileServer_system_database_query_selectSingle;
|
||||||
_position = [_data select 4, _data select 5, _data select 6];
|
_position = [_data select 4, _data select 5, _data select 6];
|
||||||
_vectorDirection = [_data select 7, _data select 8, _data select 9];
|
_vectorDirection = [_data select 7, _data select 8, _data select 9];
|
||||||
@ -35,7 +38,7 @@ if !(_pinCode isEqualTo "000000") then
|
|||||||
_constructionObject setVariable ["ExileAccessCode", _pinCode];
|
_constructionObject setVariable ["ExileAccessCode", _pinCode];
|
||||||
_constructionObject setVariable ["ExileIsLocked", (_data select 13), true];
|
_constructionObject setVariable ["ExileIsLocked", (_data select 13), true];
|
||||||
};
|
};
|
||||||
if (typeOf _constructionObject in ["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"]) then
|
if (typeOf _constructionObject in _DynamicObjects) then
|
||||||
{
|
{
|
||||||
_constructionObject enableDynamicSimulation true;
|
_constructionObject enableDynamicSimulation true;
|
||||||
};
|
};
|
||||||
|
@ -51,6 +51,7 @@ catch
|
|||||||
"Please have a look at @extDB3/logs/ to find out what went wrong." call ExileServer_util_log;
|
"Please have a look at @extDB3/logs/ to find out what went wrong." call ExileServer_util_log;
|
||||||
format ["MySQL Error: %1", _exception] call ExileServer_util_log;
|
format ["MySQL Error: %1", _exception] call ExileServer_util_log;
|
||||||
"Server will shutdown now :(" call ExileServer_util_log;
|
"Server will shutdown now :(" call ExileServer_util_log;
|
||||||
|
'#shutdown' call ExileServer_system_rcon_event_sendCommand;
|
||||||
//"extDB3" callExtension "9:SHUTDOWN"; Not implemented in extDB3
|
//"extDB3" callExtension "9:SHUTDOWN"; Not implemented in extDB3
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user