setDriveOnPath: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Command " to "{{RV|type=command ") |
Lou Montana (talk | contribs) m (Text replacement - "\{\{ *codecomment *\| *\/\/ *([^ ]+) *\}\} " to "{{cc|$1}}") |
||
Line 20: | Line 20: | ||
|x1= <code>myVehicle [[setDriveOnPath]] [<nowiki/>[[getMarkerPos]] "wp1", [[getMarkerPos]] "wp2"];</code> | |x1= <code>myVehicle [[setDriveOnPath]] [<nowiki/>[[getMarkerPos]] "wp1", [[getMarkerPos]] "wp2"];</code> | ||
|x2= <code>_points = [[allMapMarkers]] [[apply]] { [[getMarkerPos]] _x; }; {{ | |x2= <code>_points = [[allMapMarkers]] [[apply]] { [[getMarkerPos]] _x; }; {{cc| getting all marker positions}}{ [[_x]] [[pushBack]] 15; } forEach _points; {{cc| setting [[speed]]}}myVehicle [[setDriveOnPath]] _points;</code> | ||
{ [[_x]] [[pushBack]] 15; } forEach _points; {{ | |||
myVehicle [[setDriveOnPath]] _points;</code> | |||
| [[move]], [[forceSpeed]], [[limitSpeed]], [[Waypoint]] | | [[move]], [[forceSpeed]], [[limitSpeed]], [[Waypoint]] |
Revision as of 16:31, 29 January 2021
Description
- Description:
- Description needed
- Groups:
- Object Manipulation
Syntax
- Syntax:
- Syntax needed
- Parameters:
- vehicleName: Object
- points: Array - list of Positions to format [x,y,z] OR to format [x,y,z, speed], speed being in m/s.
- Return Value:
- Return value needed
Examples
- Example 1:
myVehicle setDriveOnPath [getMarkerPos "wp1", getMarkerPos "wp2"];
- Example 2:
_points = allMapMarkers apply { getMarkerPos _x; }; // getting all marker positions{ _x pushBack 15; } forEach _points; // setting speedmyVehicle setDriveOnPath _points;
Additional Information
- See also:
- See also needed
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