ACE3/addons/common/functions/fnc_isAlive.sqf
2015-09-18 18:28:19 +02:00

18 lines
368 B
Plaintext

/*
* Author: commy2
* Check if the object still exists and is alive. This function exists because 'alive objNull' actually returns true.
*
* Argument:
* 0: Any object (Object)
*
* Return value:
* The object exists and is alive (Bool).
*
* Public: Yes
*
* Deprecated
*/
#include "script_component.hpp"
!isNull (_this select 0) && {alive (_this select 0)}