DCS option rtbOnOutOfAmmo

From DCS World Wiki - Hoggitworld.com


Task: RTB on Out of Ammo Added with: 1.2.4
Hierarchy: Scripting Root > Tasks > Option > RTB on Out of Ammo
Tasking Type: Option
For: Airplanes, Helicopters
Available Under: Everything
Description: Option that forces an AI aircraft to RTB once it is out of a certain type of ammo.

Behaviors:

Once the ammo has reach 0% on the aircraft, it will RTB

Format: All options have an option ID and Value. For more information see the article on the AI enumerator.

Option Identifier: 10

AI.Option.GROUND.id.RTB_ON_OUT_OF_AMMO

Option Values:

Weapons.flag enumerator

Enumerators: RTB_ON_OUT_OF_AMMO = 10

weaponType is a number associated with a correspond weapons flags

Examples:
Notes: See article Mission Editor: AI Tasking for more information on how AI tasking is handled within DCS.
Task List: Main Tasks: mission, AttackGroup, AttackUnit, Bombing, CarpetBombing, AttackMapObject, BombingRunway, orbit, refueling, land, follow, followBigFormation, escort, Embarking, fireAtPoint, hold, FAC_AttackGroup, EmbarkToTransport, DisembarkFromTransport, CargoTransportation, goToWaypoint

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

Commands: script, setCallsign, setFrequency, switchWaypoint, stopRoute, switchAction, setInvisible, setImmortal, activateBeacon, deactivateBeacon, eplrs, start, transmitMessage, stopTransmission

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