Skip to content

Commit

Permalink
Add wrapper for isInStablecondition
Browse files Browse the repository at this point in the history
  • Loading branch information
DartRuffian committed Dec 14, 2024
1 parent 79265d8 commit 2501254
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions addons/medical/XEH_PREP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ PREP(deserializeState);
PREP(fullHeal);
PREP(getBloodLoss);
PREP(isInjured);
PREP(isInStableCondition);
PREP(serializeState);
PREP(setUnconscious);
22 changes: 22 additions & 0 deletions addons/medical/functions/fnc_isInStableCondition.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#include "..\script_component.hpp"
/*
* Author: DartRuffian
* Checks if a unit is in stable condition.
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* Is unit stable <BOOL>
*
* Example:
* player call ace_medical_fnc_isInStableCondition
*
* Public: Yes
*/

params [["_unit", objNull, [objNull]]];

if (!alive _unit) exitWith { false };

_unit call EFUNC(medical_status,isInStableCondition)

0 comments on commit 2501254

Please sign in to comment.