2018-07-20 21:23:48 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
/*
|
|
|
|
* Author: SilentSpike
|
2018-08-25 15:40:22 +00:00
|
|
|
* Handles a unit reaching the point of death (calls for a status update).
|
2018-07-20 21:23:48 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The Unit <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
2019-03-30 16:07:54 +00:00
|
|
|
* Example:
|
|
|
|
* [player] call ace_medical_statemachine_fnc_enteredStateDeath
|
|
|
|
*
|
2018-07-20 21:23:48 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_unit"];
|
|
|
|
|
|
|
|
// TODO: Probably also needs additional logic to deal with edge cases
|
|
|
|
|
|
|
|
// Send a local event before death
|
|
|
|
[QEGVAR(medical,death), [_unit]] call CBA_fnc_localEvent;
|
|
|
|
|
2018-08-25 15:40:22 +00:00
|
|
|
[_unit] call EFUNC(medical_status,setDead);
|