mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
Fix Error Message
This commit is contained in:
@@ -1,15 +1,22 @@
|
||||
private ["_nearByObjects","_targetObject"];
|
||||
private ["_nearByObjects","_targetObject","_error","_range","_objects"];
|
||||
|
||||
_objects = _this select 0;
|
||||
_range = _this select 1;
|
||||
_error = _this select 2;
|
||||
|
||||
|
||||
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
||||
_canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);
|
||||
|
||||
_nearByObjects = nearestObjects _this;
|
||||
_nearByObjects = nearestObjects [player,_objects,_range];
|
||||
|
||||
if (count _nearByObjects == 0) exitWith {
|
||||
cutText [(localize "str_epoch_player_8"), "PLAIN DOWN"];
|
||||
cutText [(localize _error), "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
_targetObject = _nearByObjects select 0;
|
||||
if (!isNull _targetObject and _canDo) then {
|
||||
[0,1,2,_targetObject] spawn player_removeObject;
|
||||
};
|
||||
} else {
|
||||
cutText [(localize _error), "PLAIN DOWN"];
|
||||
};
|
||||
Reference in New Issue
Block a user