2016-01-16 23:27:42 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Return the captivity status of an unit.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Unit <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Captivity Reasons, empty if not captive <ARRAY>
|
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
params ["_unit"];
|
|
|
|
|
2016-01-19 15:34:59 +00:00
|
|
|
//Now just a wrapper for FUNC(statusEffect_get) [No longer used in ace as of 3.5]
|
|
|
|
ACE_DEPRECATED("ace_common_fnc_getCaptivityStatus","3.7.0","ace_common_fnc_statusEffect_get");
|
2016-01-16 23:27:42 +00:00
|
|
|
|
2016-01-19 15:34:59 +00:00
|
|
|
([_unit, "setCaptive"] call FUNC(statusEffect_get)) select 1
|