mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
31 lines
628 B
Plaintext
31 lines
628 B
Plaintext
/*
|
|
* Author: Glowbal
|
|
* Called when a unit is killed
|
|
*
|
|
* Arguments:
|
|
* 0: The Unit <OBJECT>
|
|
*
|
|
* ReturnValue:
|
|
* None
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
private["_unit"];
|
|
_unit = _this select 0;
|
|
if (!local _unit) exitwith {};
|
|
|
|
_unit setvariable [QGVAR(pain), 0];
|
|
if (GVAR(level) >= 2) then {
|
|
_unit setvariable [QGVAR(heartRate), 0];
|
|
_unit setvariable [QGVAR(bloodPressure), [0, 0]];
|
|
_unit setvariable [QGVAR(airwayStatus), 0];
|
|
|
|
_openWounds = _unit getvariable [QGVAR(openWounds), []];
|
|
{
|
|
["medical_propagateWound", [_unit, _x]] call EFUNC(common,globalEvent);
|
|
}foreach _openWounds;
|
|
};
|