ACE3/addons/common/functions/fnc_getForceWalkStatus.sqf

24 lines
553 B
Plaintext
Raw Normal View History

/*
* Author: PabstMirror, commy2
* Returns reasons why the unit is forceWalk-ing.
*
* Arguments:
* 0: unit <OBJECT>
*
* Return Value:
* Force Walk reasons <ARRAY>
*
* Example:
* [ACE_Player] call ace_common_fnc_getForceWalkStatus
*
* 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_getForceWalkStatus","3.7.0","ace_common_fnc_statusEffect_get");
2016-01-19 15:34:59 +00:00
([_unit, "forceWalk"] call FUNC(statusEffect_get)) select 1