ACE3/addons/medical/functions/fnc_canGoUnconsciousState.sqf
Thomas Kooi 8d34f98909 Moved relevant functions from common to medical.
Removed unnecessary event function.
2015-01-24 17:18:38 +01:00

17 lines
409 B
Plaintext

/**
* fn_canGoUnconsciousState.sqf
* @Descr: Checks if an object can move into unconscious state
* @Author: Glowbal
*
* @Arguments: [unit OBJECT]
* @Return: BOOL true if object can move into unconscious state
* @PublicAPI: true
*/
#include "script_component.hpp"
private ["_unit"];
_unit = _this select 0;
(!(isNull _unit) && {(_unit isKindOf "CaManBase") && ([_unit] call EFUNC(common,isAwake))})