mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
490 B
Plaintext
25 lines
490 B
Plaintext
/*
|
|
* Author: BaerMitUmlaut
|
|
* Checks if a unit needs treatment.
|
|
*
|
|
* Arguments:
|
|
* Unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Does unit need treatment <BOOL>
|
|
*
|
|
* Example:
|
|
* player call ACE_medical_ai_fnc_isInjured
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
if !(alive _this) exitWith {false};
|
|
|
|
private _bloodLoss = GET_BLOOD_LOSS(_this);
|
|
private _pain = GET_PAIN_PERCEIVED(_this);
|
|
private _unconscious = IS_UNCONSCIOUS(_this);
|
|
|
|
(_bloodLoss > 0) || {_pain > 0.2} || _unconscious
|