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