ACE3/addons/common/functions/fnc_applyForceWalkStatus.sqf

24 lines
455 B
Plaintext
Raw Normal View History

/*
2015-09-18 07:38:19 +00:00
* Author: Pabst Mirror
* Applys the forceWalk status of an unit. Called from Extended_InitPost_EventHandlers.
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* None
*
* Example:
* [ACE_Player] call FUNC(applyForceWalkStatus)
*
* Public: No
*/
2015-01-13 19:56:02 +00:00
#include "script_component.hpp"
2015-09-18 07:38:19 +00:00
params ["_unit"];
2015-09-18 07:38:19 +00:00
private "_forceWalkNumber";
_forceWalkNumber = _unit getVariable ["ACE_forceWalkStatusNumber", 0];
_unit forceWalk (_forceWalkNumber > 0);