2016-09-04 09:25:03 +00:00
|
|
|
/*
|
|
|
|
* Author: BaerMitUmlaut
|
|
|
|
* Checks if a unit needs treatment.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Does unit need treatment <BOOL>
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* call ACE_medical_ai_fnc_isInjured
|
|
|
|
*
|
2016-09-04 09:25:03 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
if !(alive _this) exitWith {false};
|
|
|
|
|
|
|
|
private _bloodLoss = [_this] call EFUNC(medical,getBloodLoss);
|
2016-12-06 16:26:11 +00:00
|
|
|
private _pain = [_this] call EFUNC(medical,getPainLevel);
|
2016-09-04 09:25:03 +00:00
|
|
|
|
2016-12-06 16:26:11 +00:00
|
|
|
((_bloodLoss > 0) || {_pain > 0.2})
|