2015-01-11 16:42:31 +00:00
|
|
|
/*
|
2015-09-19 18:55:35 +00:00
|
|
|
* Author: Pabst Mirror (from captivity by commy2)
|
|
|
|
* Sets the forceWalk status of an unit. This allows the handling of more than one reason to set forceWalk.
|
|
|
|
* Unit will force walk until all reasons are removed.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Unit <OBJECT>
|
|
|
|
* 1: Reason for forcing walking <STRING>
|
|
|
|
* 2: Is the reason still valid. True to force walk, false to remove restriction. <BOOL>
|
|
|
|
*
|
|
|
|
* Returns:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [ACE_Player, "BrokenLeg", true] call FUNC(setForceWalkStatus)
|
|
|
|
*
|
2015-12-14 12:08:19 +00:00
|
|
|
* Public: Yes
|
2015-01-11 16:42:31 +00:00
|
|
|
*/
|
2015-01-13 19:56:02 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-09-19 18:55:35 +00:00
|
|
|
params ["_unit", "_reason", "_status"];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2016-01-19 15:34:59 +00:00
|
|
|
//Now just a wrapper for FUNC(statusEffect_set) [No longer used in ace as of 3.5]
|
|
|
|
ACE_DEPRECATED("ace_common_fnc_setForceWalkStatus","3.7.0","ace_common_fnc_statusEffect_set");
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2016-01-13 00:18:12 +00:00
|
|
|
[_unit, "forceWalk", _reason, _status] call FUNC(statusEffect_set);
|