BIS fnc scriptedMove: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma2oa |Game name= | | arma2oa |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Object Manipulation |GROUP1= | |gr1 = Object Manipulation |GROUP1= | ||
| Force a unit to turn towards and walk to |Description= | | Force a unit to turn towards and walk to |Description= | ||
| [unit, waypoints'', code, walkAnim, animLength''] call [[BIS_fnc_scriptedMove]] |Syntax= | | [unit, waypoints'', code, walkAnim, animLength''] call [[BIS_fnc_scriptedMove]] |Syntax= | ||
Line 25: | Line 22: | ||
| [[Script_(Handle)|Script Handle]] |Return value= | | [[Script_(Handle)|Script Handle]] |Return value= | ||
|x1= <code>[myUnit, [<nowiki/>[[getMarkerPos]] "wp1", [[getMarkerPos]] "wp2", [[getMarkerPos]] "wp3"]] [[call]] [[BIS_fnc_scriptedMove]];</code> |Example 1= | |x1= <code>[myUnit, [<nowiki/>[[getMarkerPos]] "wp1", [[getMarkerPos]] "wp2", [[getMarkerPos]] "wp3"]] [[call]] [[BIS_fnc_scriptedMove]];</code> |Example 1= | ||
| [[move]], [[setDriveOnPath]] |See also= | | [[move]], [[setDriveOnPath]] |See also= |
Revision as of 23:46, 16 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