ACE3/addons/common/functions/fnc_isAlive.sqf
2015-09-21 22:09:54 +02:00

22 lines
434 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"
ACE_DEPRECATED("ace_common_fnc_isAlive","3.5.0","alive");
params ["_unit"];
!isNull _unit && {alive _unit} // return