BIS_fnc_scriptedMove

From Bohemia Interactive Community
Revision as of 11:46, 29 April 2022 by Lou Montana (talk | contribs) (Add Arma 3 "broken" note)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Force a unit to turn towards and walk to provided destination(s).
Arma 3
This function is broken in Arma 3 as its code relies on Arma 2: Multiplayer Framework.
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
[unit, waypoints, code, walkAnim, animLength] call BIS_fnc_scriptedMove
Parameters:
unit: Object
waypoints: Array of Positions
code: Code - (Optional, default {}) code to run after waypoint completion
walkAnim: String - (Optional, default "AmovPercMwlkSnonWnonDf")
animLength: Number - (required if walkAnim is defined) distance made by walkAnim animation
Return Value:
Script Handle

Examples

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

Additional Information

See also:
movesetDriveOnPath

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note