Prevent 'name' error when player is killed while logging in

Prevents WARNING: Function 'name' - x is dead when player is killed
while logging in.
This commit is contained in:
ebaydayz
2016-12-31 18:20:49 -05:00
parent 0b27653833
commit 30f1827509
2 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,6 @@ while {true} do {
};
if ((!isNil "Dayz_loginCompleted") and {(Dayz_loginCompleted)}) exitWith {
//diag_log [ __FILE__, __LINE__, "End loop"];
dayz_playerName = if (alive player) then {name player} else {"unknown"};
if (dayz_groupSystem) then {execVM "\z\addons\dayz_code\groups\init.sqf";};
};
_display = uiNameSpace getVariable "BIS_loadingScreen";