mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-04 22:39:34 +03:00
Fix Error if obj hasnt have this variable
This commit is contained in:
1 parent
37a1c86325
commit
d41611473a
1 file changed
+3
-3
@@ -911,9 +911,9 @@ server_getLocalObjVars = {
|
||||
_objectID = _obj getVariable["ObjectID","0"];
|
||||
_objectUID = _obj getVariable["ObjectUID","0"];
|
||||
|
||||
_weapons = _obj getVariable ["WeaponCargo", false];
|
||||
_magazines = _obj getVariable ["MagazineCargo", false];
|
||||
_backpacks = _obj getVariable ["BackpackCargo", false];
|
||||
_weapons = _obj getVariable ["WeaponCargo", []];
|
||||
_magazines = _obj getVariable ["MagazineCargo", []];
|
||||
_backpacks = _obj getVariable ["BackpackCargo", []];
|
||||
|
||||
PVDZE_localVarsResult = [_weapons,_magazines,_backpacks];
|
||||
(owner _player) publicVariableClient "PVDZE_localVarsResult";
|
||||
|
||||
Reference in new issue
Block a user