2018-07-30 09:22:14 +00:00
|
|
|
#include "script_component.hpp"
|
2015-07-03 20:16:18 +00:00
|
|
|
/*
|
2017-04-22 15:57:32 +00:00
|
|
|
* Author: Glowbal
|
2019-08-06 13:10:33 +00:00
|
|
|
* Check if a unit is in a stable condition, needed for PersonalAidKit treatment
|
2017-04-22 15:57:32 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The patient <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Is in stable condition <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
2019-03-30 16:07:54 +00:00
|
|
|
* [player] call ace_medical_status_fnc_isInStableCondition
|
2017-04-22 15:57:32 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-07-03 20:16:18 +00:00
|
|
|
|
2015-08-22 14:25:10 +00:00
|
|
|
params ["_unit"];
|
2015-07-03 20:16:18 +00:00
|
|
|
|
2018-07-29 21:43:14 +00:00
|
|
|
(alive _unit
|
|
|
|
&& {!IS_UNCONSCIOUS(_unit)}
|
2019-04-27 19:12:11 +00:00
|
|
|
&& {GET_WOUND_BLEEDING(_unit) == 0}
|
2018-07-29 21:43:14 +00:00
|
|
|
&& {_unit call FUNC(hasStableVitals)})
|