mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
22 lines
511 B
Plaintext
22 lines
511 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_LOGWARNING_3("%1 is deprecated. Support will be dropped in version %2. Replaced by: %3","ace_common_fnc_isAlive","3.5.0","alive");
|
|
|
|
params ["_unit"];
|
|
|
|
!isNull _unit && {alive _unit} // return
|