ACE3/addons/medical/functions/fnc_handleKilled.sqf

26 lines
465 B
Plaintext
Raw Normal View History

/*
* Author: Glowbal
* Called when a unit is killed
*
* Arguments:
* 0: The Unit <OBJECT>
*
* ReturnValue:
* None
*
* Public: No
*/
#include "script_component.hpp"
2015-08-22 14:25:10 +00:00
private "_openWounds";
params ["_unit"];
if (!local _unit) exitwith {};
_unit setvariable [QGVAR(pain), 0];
if (GVAR(level) >= 2) then {
2015-03-09 21:27:01 +00:00
_unit setvariable [QGVAR(heartRate), 0];
_unit setvariable [QGVAR(bloodPressure), [0, 0]];
_unit setvariable [QGVAR(airwayStatus), 0];
};