ACE3/addons/common/functions/fnc_applyForceWalkStatus.sqf

24 lines
465 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:
2015-09-20 20:29:38 +00:00
* [ACE_Player] call ace_common_fnc_applyForceWalkStatus
2015-09-18 07:38:19 +00:00
*
* Public: No
2015-09-20 20:29:38 +00:00
*/
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);