2015-03-10 22:35:05 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Check if the object still exists and is alive. This function exists because 'alive objNull' actually returns true.
|
|
|
|
*
|
|
|
|
* Argument:
|
2015-09-20 14:56:35 +00:00
|
|
|
* 0: Any object <OBJECT>
|
2015-03-10 22:35:05 +00:00
|
|
|
*
|
|
|
|
* Return value:
|
2015-09-20 14:56:35 +00:00
|
|
|
* The object exists and is alive <BOOL>.
|
2015-09-18 16:28:19 +00:00
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*
|
|
|
|
* Deprecated
|
2015-03-10 22:35:05 +00:00
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-09-21 19:48:18 +00:00
|
|
|
ACE_WARNINGFORMAT_3("%1 is deprecated. Support will be dropped in version %2. Replaced by: %3","ace_common_fnc_isAlive","3.5.0","alive");
|
2015-09-21 19:25:18 +00:00
|
|
|
|
2015-09-20 14:56:35 +00:00
|
|
|
params ["_unit"];
|
|
|
|
|
|
|
|
!isNull _unit && {alive _unit} // return
|