ACE3/addons/medical_status/functions/fnc_isInStableCondition.sqf

24 lines
465 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
/*
* Author: Glowbal
* Check if a unit is in a stable condition, needed for PersonalAidKit treatment
*
* 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
*
* Public: No
*/
2015-08-22 14:25:10 +00:00
params ["_unit"];
alive _unit
&& {!IS_UNCONSCIOUS(_unit)}
&& {GET_WOUND_BLEEDING(_unit) == 0}
&& {_unit call FUNC(hasStableVitals)}