mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Extend DZE_GodModeBase to built items (#1898)
This now makes buildables properly apply godmode instead of having to wait till restart for: * Being built * Being upgraded * Being downgraded master
This commit is contained in:
@@ -125,6 +125,10 @@ if ((count _upgrade) > 0) then {
|
||||
} else {
|
||||
format[localize "str_epoch_player_159",_text] call dayz_rollingMessages;
|
||||
};
|
||||
if (DZE_GodModeBase && {!(_classname in DZE_GodModeBaseExclude)}) then {
|
||||
_object addEventHandler ["HandleDamage",{false}];
|
||||
_object enableSimulation false;
|
||||
};
|
||||
if (DZE_permanentPlot) then {
|
||||
_ownerID = _obj getVariable["ownerPUID","0"];
|
||||
if (_ownerID == "0") then { _ownerID = dayz_playerUID; }; //APFL is on but UID is 0 so we will claim it to record the ownership.
|
||||
|
||||
Reference in New Issue
Block a user