Remove ObjectID and ObjectUID from PVDZE_maintainArea

This also fixes non maintained safes if they were open when the player maintains the base.
This commit is contained in:
A Man
2022-03-24 18:05:37 +01:00
parent e72394d6da
commit 3ffa072c8e
4 changed files with 34 additions and 46 deletions

View File

@@ -16,16 +16,6 @@ player removeAction s_player_maint_build;
s_player_maint_build = 1;
local _obj = _this select 3;
local _objectID = _obj getVariable ["ObjectID","0"];
local _objectUID = _obj getVariable ["ObjectUID","0"];
if (_objectID == "0" && _objectUID == "0") exitWith {
dayz_actionInProgress = false;
s_player_maint_build = -1;
localize "str_epoch_player_50" call dayz_rollingMessages; // Not setup yet.
};
local _classname = typeOf _obj;
// Find next maintain
@@ -103,7 +93,7 @@ if (_proceed) then {
format[localize "STR_EPOCH_ACTIONS_4" ,1] call dayz_rollingMessages; // You have maintained %1 building parts.
PVDZE_maintainArea = [player, 2, [_obj, _objectID, _objectUID]];
PVDZE_maintainArea = [netID player, 2, [netID _obj]];
publicVariableServer "PVDZE_maintainArea";
} else {