ACE3/addons/common/functions/fnc_applyForceWalkStatus.sqf

26 lines
498 B
Plaintext
Raw Normal View History

/*
2015-01-11 18:20:14 +00:00
Name: FUNC(applyForceWalkStatus)
Author: Pabst Mirror
Description:
Applys the forceWalk status of an unit. Called from Extended_InitPost_EventHandlers.
Parameters:
0: OBJECT - Unit
Returns:
None
Example:
[ACE_Player] call FUNC(applyForceWalkStatus)
*/
2015-01-12 18:22:58 +00:00
#include "\z\ace\addons\common\script_component.hpp"
private ["_unit", "_forceWalkNumber"];
_unit = _this select 0;
_forceWalkNumber = _unit getVariable ["ACE_forceWalkStatusNumber", 0];
_unit forceWalk (_forceWalkNumber > 0);