ACE3/addons/medical_blood/functions/fnc_isBleeding.sqf

24 lines
398 B
Plaintext
Raw Normal View History

2016-09-11 18:46:35 +00:00
/*
* Author: Glowbal
* Check if is bleeding
*
* Arguments:
* 0: unit <TYPE>
*
* Return Value:
* is Bleeding <BOOL>
*
* Example:
* [UNIT] call ace_medical_blood_fnc_isBleeding
*
* Public: No
*/
#include "script_component.hpp"
params ["_unit"];
if (GVAR(useAceMedical)) exitWith {
_unit getVariable [QEGVAR(medical,isBleeding), false];
};
alive _unit && {getDammage _unit > 0.3};