2015-01-11 16:42:31 +00:00
|
|
|
/*
|
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-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-18 07:38:19 +00:00
|
|
|
params ["_unit"];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-09-18 07:38:19 +00:00
|
|
|
private "_forceWalkNumber";
|
2015-01-12 04:02:33 +00:00
|
|
|
_forceWalkNumber = _unit getVariable ["ACE_forceWalkStatusNumber", 0];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
_unit forceWalk (_forceWalkNumber > 0);
|