2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2016-09-11 18:46:35 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
2019-06-28 16:50:11 +00:00
|
|
|
* Checks if the given unit is bleeding. Handles both ACE Medical and Vanilla.
|
2016-09-11 18:46:35 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2019-06-28 16:50:11 +00:00
|
|
|
* 0: Unit <OBJECT>
|
2016-09-11 18:46:35 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2019-06-28 16:50:11 +00:00
|
|
|
* 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"];
|
|
|
|
|
2024-06-18 00:07:38 +00:00
|
|
|
if (GETEGVAR(medical,enabled,false)) exitWith {
|
2018-07-18 20:50:03 +00:00
|
|
|
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}
|