2015-01-11 16:42:31 +00:00
|
|
|
/*
|
2015-01-11 18:20:14 +00:00
|
|
|
Name: FUNC(applyForceWalkStatus)
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
Author: Pabst Mirror
|
|
|
|
|
|
|
|
Description:
|
|
|
|
Applys the forceWalk status of an unit. Called from Extended_InitPost_EventHandlers.
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
0: OBJECT - Unit
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
None
|
|
|
|
|
|
|
|
Example:
|
2015-01-12 04:02:33 +00:00
|
|
|
[ACE_Player] call FUNC(applyForceWalkStatus)
|
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
|
|
|
|
|
|
|
private ["_unit", "_forceWalkNumber"];
|
|
|
|
|
|
|
|
_unit = _this select 0;
|
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);
|