BIS fnc scriptedMove: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma2oa | | arma2oa | ||
|1.51 | |1.51 | ||
|gr1 = Object Manipulation | |gr1 = Object Manipulation | ||
| Force a unit to turn towards and walk to | | Force a unit to turn towards and walk to | ||
| [unit, waypoints'', code, walkAnim, animLength''] call [[BIS_fnc_scriptedMove]] | | [unit, waypoints'', code, walkAnim, animLength''] call [[BIS_fnc_scriptedMove]] | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
|p2= waypoints: [[Array]] of [[Position|Positions]] | |p2= waypoints: [[Array]] of [[Position|Positions]] | ||
|p3= code: [[Code]] - (Optional, default {{Inline code|<nowiki>{}</nowiki>}}) code to run after waypoint completion | |p3= code: [[Code]] - (Optional, default {{Inline code|<nowiki>{}</nowiki>}}) code to run after waypoint completion | ||
|p4= walkAnim: [[String]] - (Optional, default "AmovPercMwlkSnonWnonDf") | |p4= walkAnim: [[String]] - (Optional, default "AmovPercMwlkSnonWnonDf") | ||
|p5= animLength: [[Number]] - ('''not''' optional if ''walkAnim'' is defined) | |p5= animLength: [[Number]] - ('''not''' optional if ''walkAnim'' is defined) | ||
| [[Script_(Handle)|Script Handle]] | | [[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> | ||
| [[move]], [[setDriveOnPath]] | | [[move]], [[setDriveOnPath]] | ||
}} | }} | ||
Revision as of 23:44, 17 January 2021
Description
- Description:
- Force a unit to turn towards and walk to
- 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