dcsex.ai.Route
Define a route a DCS unit group will take.
Contents
Description
Helps in constructing a DCS mission task, see “DCS task mission” on Hoggit Wiki.
Metamethods
route:__init(airborne, wpts)
Parameters
- airborne
- set to True for routes applied to air groups. The Hoggit wiki says this value is needed for air groups otherwise the group will not follow the new tasking.
- wpts
- array of dcsex.ai.Waypoint objects
Methods
route:addWaypoint(wpt, idx)
Parameters
- wpt
- the Waypoint object to add
- idx
- (optional) if provided is the integer index to insert the new Waypoint at, otherwise appends to the end of the list
route:removeWaypoint(idx)
Parameters
- idx
- (optional) remove Waypoint at idx position, otherwise remove the Waypoint at the end of the list
route:get()
Returns
- table, dcsex.enum.TASKTYPE.TASK