ACE3/addons/common/functions/fnc_isAlive.sqf
2015-03-10 23:35:05 +01:00

15 lines
336 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).
*/
#include "script_component.hpp"
!isNull (_this select 0) && {alive (_this select 0)}