Arma 3 Scripting

BIS_fnc_scriptedMove

  • Global argument
  • Global effect
  • Arma 3 v2.10

Function · Markdown · JSON · original wiki page

Description

Forces a unit to turn towards and walk to provided destination(s). Will not work on player. When Group is used as argument, the function will be automatically executed for each unit in the group.

Note

When using endAnim, make sure it is able to break walkAnim (not all animations are compatible). When code is executed, it receives the following params: [unit, waypoints, currentIndex, userArgs].

Syntax

[unitOrGroup, waypoints, code, walkAnim, completionRadius, endAnim] call BIS_fnc_scriptedMove

Parameters:

Returns: Script Handle or String or Nothing - depends on execution (local/remote/error);

Examples

Example 1

[myUnit, [getMarkerPos "wp1", getMarkerPos "wp2", getMarkerPos "wp3"]] call BIS_fnc_scriptedMove;

See also

move · setDriveOnPath · BIS_fnc_unitCapture