ACE3/addons/common/functions/fnc_getCaptivityStatus.sqf

21 lines
452 B
Plaintext
Raw Normal View History

/*
* 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"];
//Now just a wrapper for FUNC(statusEffect_get)
2016-01-18 22:53:48 +00:00
ACE_DEPRECATED("ace_common_fnc_getCaptivityStatus","3.6.0","ace_common_fnc_statusEffect_get");
([player, "setCaptive"] call FUNC(statusEffect_get)) select 1