ACE3/TO_MERGE/cse/main/misc/functions/fn_isAwake.sqf
2015-01-12 23:35:40 +01:00

14 lines
376 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
*/
private ["_unit","_return"];
_unit = _this select 0;
(!([_unit] call cse_fnc_isUnconscious)) && alive _unit && !(_unit getvariable ["cse_isDead",false]);