BIS fnc scriptedMove: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *arma2oa * +\| *1.([0-9]{2}) * *\|([^g]|g[^a])" to "| arma2oa |1.$1 |game2= tkoh |version2= 1.00 |game3= arma3 |version3= 0.50 |$2")
m (Text replacement - " \| *(\[\[Script.+) * +\|x1=" to " |r1=$1 |x1=")
Line 26: Line 26:
|p5= animLength: [[Number]] - ('''not''' optional if ''walkAnim'' is defined)
|p5= animLength: [[Number]] - ('''not''' optional if ''walkAnim'' is defined)


| [[Script_(Handle)|Script Handle]]
|r1=[[Script_(Handle)|Script Handle]]


|x1= <code>[myUnit, [<nowiki/>[[getMarkerPos]] "wp1", [[getMarkerPos]] "wp2", [[getMarkerPos]] "wp3"]] [[call]] [[BIS_fnc_scriptedMove]];</code>
|x1= <code>[myUnit, [<nowiki/>[[getMarkerPos]] "wp1", [[getMarkerPos]] "wp2", [[getMarkerPos]] "wp3"]] [[call]] [[BIS_fnc_scriptedMove]];</code>

Revision as of 03:33, 13 June 2021

Hover & click on the images for description

Description

Description:
Description needed
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 - (not optional if walkAnim is defined)
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