Files
DayZ-Epoch/dayz_code/medical/publicEH/medEpi.sqf
Aaron Clark 76e9a0582e 0.1
2012-11-04 20:28:50 -06:00

23 lines
603 B
Plaintext

// animHealed.sqf
_array = _this; //_this select 0;
_unit = _array select 0;
_medic = _array select 1;
_isDead = _unit getVariable["USEC_isDead",false];
if (local _unit) then {_unit setCaptive false};
if (!_isDead) then {
_unit switchMove "AmovPpneMstpSnonWnonDnon_healed";
_unit setVariable ["NORRN_unconscious", false, true];
_unit setVariable ["USEC_isCardiac",false,true];
if (_unit == player) then {
r_player_unconscious = false;
disableUserInput false;
r_player_cardiac = false;
r_player_handler1 = false;
};
if (isServer) then {
_unit setVariable["medForceUpdate",true];
};
};