mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
27 lines
730 B
Plaintext
27 lines
730 B
Plaintext
// animHealed.sqf
|
|
|
|
private ["_array","_unit","_medic","_isDead"];
|
|
_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";
|
|
//no need to public broadcast the variables since this runs on every peer
|
|
_unit setVariable ["NORRN_unconscious", false, false];
|
|
_unit setVariable ["USEC_isCardiac",false, false];
|
|
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];
|
|
};
|
|
}; |