mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
26 lines
461 B
Plaintext
26 lines
461 B
Plaintext
/*
|
|
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)
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
private ["_forceWalkNumber"];
|
|
|
|
PARAMS_1(_unit);
|
|
_forceWalkNumber = _unit getVariable ["ACE_forceWalkStatusNumber", 0];
|
|
|
|
_unit forceWalk (_forceWalkNumber > 0);
|