ACE3/addons/medical/functions/fnc_onKilled.sqf
2015-01-18 22:16:35 +01:00

12 lines
511 B
Plaintext

#include "script_component.hpp"
private["_unit"];
_unit = _this select 0;
if (!local _unit) exitwith {};
[_unit, QGVAR(amountOfPain),0,true] call EFUNC(common,setDefinedVariable);
[_unit, QGVAR(heartRate),0,true] call EFUNC(common,setDefinedVariable);
[_unit, QGVAR(bloodPressure), [0,0],true] call EFUNC(common,setDefinedVariable);
if (_unit getvariable[QEGVAR(common,unconscious_non_captive_f),false]) then {
_unit setCaptive false;
_unit setvariable[QEGVAR(common,unconscious_non_captive_f),nil];
};