Add player to plot management by default

+ Some minor private array cleanup
This commit is contained in:
icomrade
2016-07-21 16:20:41 -04:00
parent 3519297e2d
commit 96ddc8ff62
4 changed files with 18 additions and 6 deletions

View File

@@ -544,10 +544,17 @@ if (_canBuild select 0) then {
if (DZE_permanentPlot) then {
_tmpbuilt setVariable ["ownerPUID",_playerUID,true];
PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_playerUID, _vector], []];
if (_canBuild select 1) then {
_tmpbuilt setVariable ["plotfriends", [[([player] call FNC_GetPlayerUID),(name player)]], true];
PVDZ_veh_Save = [_tmpbuilt,"gear"];
};
} else {
PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location, _vector],[]];
};
publicVariableServer "PVDZ_obj_Publish";
if (!isNil "PVDZ_veh_Save") then {
publicVariableServer "PVDZ_veh_Save";
};
};
};
} else { //if magazine was not removed, cancel publish