localize cursorTarget check

This commit is contained in:
AirwavesMan
2020-07-26 18:57:54 +02:00
parent 20d909ce74
commit 10ca82533f
2 changed files with 1 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
if (dayz_actionInProgress) exitWith {localize "str_player_actionslimit" call dayz_rollingMessages;}; if (dayz_actionInProgress) exitWith {localize "str_player_actionslimit" call dayz_rollingMessages;};
dayz_actionInProgress = true; dayz_actionInProgress = true;
if (isNull cursorTarget) exitWith {systemChat "cursorTarget isNull!";}; if (isNull cursorTarget) exitWith {systemChat localize "str_cursorTargetNotFound";};
private ["_backupCode","_badCode","_cursorTarget","_dialog","_dir","_doorFriends","_isDoor","_isLockBox","_isSafe","_isStorage","_location","_lockCode","_object","_ownerID","_typeOf","_vector"]; private ["_backupCode","_badCode","_cursorTarget","_dialog","_dir","_doorFriends","_isDoor","_isLockBox","_isSafe","_isStorage","_location","_lockCode","_object","_ownerID","_typeOf","_vector"];

View File

@@ -25,7 +25,6 @@ server_changeCode = {
_objectID = _object getVariable ["ObjectID","0"]; _objectID = _object getVariable ["ObjectID","0"];
_objectUID = _object getVariable ["ObjectUID","0"]; _objectUID = _object getVariable ["ObjectUID","0"];
_ownerID = _object getVariable ["ownerPUID","0"]; _ownerID = _object getVariable ["ownerPUID","0"];
//_name = if (alive _player) then {name _player;} else {"unknown player";};
_name = ["unknown player",name _player] select (alive _player); _name = ["unknown player",name _player] select (alive _player);
_clientID = owner _player; _clientID = owner _player;
_playerUID = getPlayerUID _player; _playerUID = getPlayerUID _player;