mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Include Base Building Godmode
This commit is contained in:
@@ -18,8 +18,9 @@ if(!isNull(_obj)) then {
|
||||
_objectID = _obj getVariable ["ObjectID","0"];
|
||||
// Find objectUID
|
||||
_objectUID = _obj getVariable ["ObjectUID","0"];
|
||||
|
||||
_obj removeAllMPEventHandlers "MPKilled";
|
||||
if !(DZE_GodModeBase) then {
|
||||
_obj removeAllMPEventHandlers "MPKilled";
|
||||
};
|
||||
// Remove old object
|
||||
deleteVehicle _obj;
|
||||
|
||||
@@ -63,8 +64,11 @@ _key call server_hiveWrite;
|
||||
_object setVariable ["lastUpdate",time];
|
||||
_object setVariable ["ObjectUID", _uid,true];
|
||||
// _object setVariable ["CharacterID",_charID,true];
|
||||
|
||||
_object addMPEventHandler ["MPKilled",{_this call object_handleServerKilled;}];
|
||||
if (DZE_GodModeBase) then {
|
||||
_object addEventHandler ["HandleDamage", {false}];
|
||||
}else{
|
||||
_object addMPEventHandler ["MPKilled",{_this call object_handleServerKilled;}];
|
||||
};
|
||||
// Test disabling simulation server side on buildables only.
|
||||
_object enableSimulation false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user