ACE3/addons/common/functions/fnc_setCaptivityStatus.sqf

23 lines
642 B
Plaintext
Raw Normal View History

/*
* Author: commy2
* Set the captivity status of an unit. This allows the handling of more than one reason to set a unit captive.
*
2015-09-19 18:34:07 +00:00
* Arguments:
* 0: Unit <OBJECT>
* 1: The reason of the captivity <STRING>
* 2: Is the reason still valid? True for setting this reason, false for removing it <BOOL>
*
* Return Value:
* None
*
* Public: Yes
*/
2015-01-13 19:56:02 +00:00
#include "script_component.hpp"
2015-09-19 18:34:07 +00:00
params ["_unit", "_reason", "_status"];
2016-01-13 00:18:12 +00:00
//Now just a wrapper for FUNC(statusEffect_set)
2016-01-18 22:53:48 +00:00
ACE_DEPRECATED("ace_common_fnc_setCaptivityStatus","3.6.0","ace_common_fnc_statusEffect_set");
[_unit, "setCaptive", _reason, _status] call FUNC(statusEffect_set);