Files
DayZ-Epoch/SQF/dayz_code/actions/openGear.sqf
2017-04-17 17:04:17 -04:00

13 lines
412 B
Plaintext

private ["_unit","_unconcious","_inVeh","_alive"];
call fnc_usec_medic_removeActions;
_unit = _this select 3;
_unconcious = _unit getVariable ["NORRN_unconscious", false];
_inVeh = vehicle player != player;
_alive = alive _unit;
if (_unconcious && !_inVeh && _alive) then {
DZE_GearCheckBypass = true; //Bypass gear menu checks since dialog will always open on _unit's gear
player action ["Gear", _unit];
};