mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
make sure holder is not null
This commit is contained in:
@@ -6,8 +6,8 @@ _classname = _this select 2;
|
||||
// Exit if player zombie
|
||||
if(player isKindOf "PZombie_VB") exitWith {};
|
||||
|
||||
if (!isNull _holder) then {
|
||||
_name = getText(configFile >> _type >> _classname >> "displayName");
|
||||
|
||||
_actionSet = _holder getVariable["actionSet", false];
|
||||
|
||||
if (!_actionSet) then {
|
||||
@@ -15,3 +15,4 @@ if (!_actionSet) then {
|
||||
player reveal _holder;
|
||||
_holder setVariable["actionSet", true];
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user