ACE3/addons/medical_blood/functions/fnc_isBleeding.sqf

25 lines
437 B
Plaintext
Raw Permalink Normal View History

#include "..\script_component.hpp"
2016-09-11 18:46:35 +00:00
/*
* Author: Glowbal
* Checks if the given unit is bleeding. Handles both ACE Medical and Vanilla.
2016-09-11 18:46:35 +00:00
*
* Arguments:
* 0: Unit <OBJECT>
2016-09-11 18:46:35 +00:00
*
* Return Value:
* Is Bleeding <BOOL>
2016-09-11 18:46:35 +00:00
*
* Example:
2019-03-30 16:07:54 +00:00
* [player] call ace_medical_blood_fnc_isBleeding
2016-09-11 18:46:35 +00:00
*
* Public: No
*/
params ["_unit"];
if (GETEGVAR(medical,enabled,false)) exitWith {
IS_BLEEDING(_unit);
2016-09-11 18:46:35 +00:00
};
2018-05-22 17:06:28 +00:00
alive _unit && {getDammage _unit > 0.3}