BIS fnc scriptedMove: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
Lou Montana (talk | contribs) (Page filling) |
||
Line 1: | Line 1: | ||
{{Function|Comments= | |||
{{Function|= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma2oa | | | arma2oa |Game name= | ||
|1. | |1.51|Game version= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Force a unit to turn towards and walk to |Description= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [unit, waypoints'', code, walkAnim, animLength''] call [[BIS_fnc_scriptedMove]] |Syntax= | ||
|p1= unit: [[Object]] |Parameter 1= | |||
|p2= waypoints: [[Array]] of [[Position|Positions]] |Parameter 2= | |||
|p3= code: [[Code]] - (Optional, default {{Inline code|<nowiki>{}</nowiki>}}) code to run after waypoint completion |Parameter 3= | |||
|p4= walkAnim: [[String]] - (Optional, default "AmovPercMwlkSnonWnonDf") |Parameter 4= | |||
| | |p5= animLength: [[Number]] - ('''not''' optional if ''walkAnim'' is defined) |Parameter 5= | ||
| | | | [[Script_(Handle)|Script Handle]] |Return value= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code></code> |= | |x1= <code>[myUnit, <nowiki>[</nowiki>[[getMarkerPos]] "wp1", [[getMarkerPos]] "wp2", [[getMarkerPos]] "wp3"]] [[call]] [[BIS_fnc_scriptedMove]];</code> |Example 1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | | [[move]], [[setDriveOnPath]] |See also= | ||
}} | }} | ||
Line 33: | Line 39: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:scriptedMove}}]] | |||
[[Category:Function Group: Misc|{{uc:scriptedMove}}]] | [[Category:Function Group: Misc|{{uc:scriptedMove}}]] | ||
[[Category:{{Name|arma2oa}}: Functions|{{uc:scriptedMove}}]] | [[Category:{{Name|arma2oa}}: Functions|{{uc:scriptedMove}}]] | ||
[[Category:{{Name|tkoh}}: Functions|{{uc:scriptedMove}}]] | [[Category:{{Name|tkoh}}: Functions|{{uc:scriptedMove}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:scriptedMove}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:scriptedMove}}]] |
Revision as of 17:28, 3 July 2018
Description
- Description:
- Force a unit to turn towards and walk to
- Execution:
- call
- Groups:
- Uncategorised
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