2015-03-08 16:50:06 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
|
|
|
* Called when a unit is killed
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The Unit <OBJECT>
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Return Value:
|
2015-03-08 16:50:06 +00:00
|
|
|
* None
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [bob] call ACE_medical_fnc_handleKilled
|
|
|
|
*
|
2015-03-08 16:50:06 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-08-22 14:25:10 +00:00
|
|
|
params ["_unit"];
|
2016-12-06 16:26:11 +00:00
|
|
|
|
2015-11-30 16:14:05 +00:00
|
|
|
if (!local _unit) exitWith {};
|
2015-03-08 16:50:06 +00:00
|
|
|
|
2018-05-08 09:16:12 +00:00
|
|
|
SET_PAIN_TOTAL(_unit,0);
|
|
|
|
SET_HEART_RATE(_unit,0);
|
2016-12-06 16:26:11 +00:00
|
|
|
_unit setVariable [QGVAR(bloodPressure), [0, 0], true];
|