2023-09-12 18:58:10 +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
|
|
|
|
2019-09-28 20:48:19 +00:00
|
|
|
alive _unit
|
|
|
|
&& {!IS_UNCONSCIOUS(_unit)}
|
|
|
|
&& {GET_WOUND_BLEEDING(_unit) == 0}
|
|
|
|
&& {_unit call FUNC(hasStableVitals)}
|