2015-03-08 16:50:06 +00:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
params ["_unit"];
|
2015-11-30 16:14:05 +00:00
|
|
|
if (!local _unit) exitWith {};
|
2015-03-08 16:50:06 +00:00
|
|
|
|
2015-11-30 16:27:09 +00:00
|
|
|
_unit setVariable [QGVAR(pain), 0];
|
2015-03-08 16:50:06 +00:00
|
|
|
if (GVAR(level) >= 2) then {
|
2015-11-30 16:27:09 +00:00
|
|
|
_unit setVariable [QGVAR(heartRate), 0];
|
|
|
|
_unit setVariable [QGVAR(bloodPressure), [0, 0]];
|
|
|
|
_unit setVariable [QGVAR(airwayStatus), 0];
|
2015-03-08 16:50:06 +00:00
|
|
|
};
|