DCS task goToWaypoint

From DCS World Wiki - Hoggitworld.com


Task: goToWaypoint Added with: 1.2.4
Hierarchy: Scripting Root > Tasks > Main Task, Command > goToWaypoint
Tasking Type: Main Task, Command
For: Ground
Available Under: All tasks types
Description: Changes the active leg of a route. Allows for more complex patrol patterns and looped routes for ground units. If part of the mission task any task along route will be repeated. For example if there is a fire at point task at waypoint 2, each time the group passes that waypoint it will attempt a fire at point task.
Format: This task needs to be in the following format.
goToWaypoint= { 
  id = 'goToWaypoint', 
  params = { 
    fromWaypointIndex = number,  
    goToWaypointIndex = number, 
  } 
}

Required parameters:

fromWaypointIndex: Defines the waypoint that the AI will travel from.

goToWaypointIndex: Defines the destination waypoint

Optional Parameters:

Enumerators: N/A
Examples:
Notes: Functionally similar to the task switch waypoint for aircraft. Syntax is identical.

See article Mission Editor: AI Tasking for more information on how AI tasking is handled within DCS.

Task List: Task Wrappers: mission, ComboTask, ControlledTask, WrappedAction


Tasks: AttackGroup, AttackUnit, Bombing, Strafing, CarpetBombing, AttackMapObject, BombingRunway, orbit, refueling, land, follow, followBigFormation, escort, Embarking, fireAtPoint, hold, FAC_AttackGroup, EmbarkToTransport, DisembarkFromTransport, CargoTransportation, goToWaypoint, groundEscort, RecoveryTanker

En-route Tasks: engageTargets, engageTargetsInZone, engageGroup, engageUnit, awacs, tanker, ewr, FAC_engageGroup, FAC

Commands: script, setCallsign, setFrequency, setFrequencyForUnit, switchWaypoint, stopRoute, switchAction, setInvisible, setImmortal, setUnlimitedFuel, activateBeacon, deactivateBeacon, activateICLS, deactivateICLS, eplrs, start, transmitMessage, stopTransmission, smoke_on_off, ActivateLink4, deactivateLink4, activateACLS, deactivateACLS, LoadingShip

Options: ROE, Reaction To Threat, Radar Using, Flare Using, Formation, RTB On Bingo, silence, Disperse on Attack, Alarm State, RTB on Out of Ammo, ECM Using, Prohibit AA, Prohibit Jettison, Prohibit Afterburner, Prohibit AG, Missile Attack Range, Prohibit WP Pass Report, Engage Air Weapons, Option Radio Usage Contact, Option Radio Usage Engage, Option Radio Usage Kill, AC Engagement Range Restriction, jett tanks if empty, forced attack, Altitude Restriction for AAA Min, restrict targets, Altitude Restriction for AAA Max, Prefer Vertical, Evasion Of ARM, Formation Interval