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:
|
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-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);
|