setDriveOnPath: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<br />" to "<br>") |
Lou Montana (talk | contribs) m (Text replacement - " <nowiki>[</nowiki>" to " [<nowiki/>") |
||
Line 19: | Line 19: | ||
| [[Nothing]] |Return Value= | | [[Nothing]] |Return Value= | ||
|x1= <code>myVehicle [[setDriveOnPath]] <nowiki | |x1= <code>myVehicle [[setDriveOnPath]] [<nowiki/>[[getMarkerPos]] "wp1", [[getMarkerPos]] "wp2"];</code> |Example 1= | ||
|x2= <code>_points = [[allMapMarkers]] [[apply]] { [[getMarkerPos]] _x; }; {{codecomment|// getting all marker positions}} | |x2= <code>_points = [[allMapMarkers]] [[apply]] { [[getMarkerPos]] _x; }; {{codecomment|// getting all marker positions}} |
Revision as of 12:58, 19 March 2020
Description
- Description:
- Sets the path to follow for AI driver. Note that unitReady will return true even if AI is still driving through the points.
Using any other move command (e.gvehicleName move getPos vehicleName
) or doStop will stop the effect of this command. - Groups:
- Uncategorised
Syntax
- Syntax:
- vehicleName setDriveOnPath points
- 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:
- Nothing
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 speed myVehicle setDriveOnPath _points;
Additional Information
- See also:
- moveforceSpeedlimitSpeedWaypoint
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