mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
16 lines
420 B
Plaintext
16 lines
420 B
Plaintext
/**
|
|
* fn_isAwake.sqf
|
|
* @Descr: Check if unit is awake. Will be false when death or unit is unconscious.
|
|
* @Author: Glowbal
|
|
*
|
|
* @Arguments: [unit OBJECT]
|
|
* @Return: BOOL True if unit is awake
|
|
* @PublicAPI: true
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
private ["_unit","_return"];
|
|
_unit = _this select 0;
|
|
(!(_unit getvariable ["ACE_isUnconscious",false]) && alive _unit && !(_unit getvariable ["ACE_isDead",false]));
|