ACE3/addons/common/functions/fnc_isAwake.sqf

16 lines
385 B
Plaintext
Raw Normal View History

2015-01-16 23:21:47 +00:00
/**
* 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"
2015-05-14 18:06:06 +00:00
PARAMS_1(_unit);
(!(_unit getvariable ["ACE_isUnconscious",false]) && alive _unit && !(_unit getvariable ["ACE_isDead",false]));