Minor formatting cleanup

This commit is contained in:
ebaydayz
2016-03-21 17:58:23 -04:00
parent 286f405e67
commit e2e6e79394
76 changed files with 319 additions and 330 deletions

View File

@@ -4,19 +4,18 @@ _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 && !r_player_unconscious && !_onLadder);
_nearByObjects = nearestObjects [player,_objects,_range];
if (count _nearByObjects == 0) exitWith {
cutText [(localize _error), "PLAIN DOWN"];
cutText [localize _error,"PLAIN DOWN"];
};
_targetObject = _nearByObjects select 0;
if (!isNull _targetObject && _canDo) then {
[0,1,2,_targetObject] spawn player_removeObject;
} else {
cutText [(localize _error), "PLAIN DOWN"];
cutText [localize _error,"PLAIN DOWN"];
};