DCS task cargoTransportation

From DCS World Wiki - Hoggitworld.com


Task: CargoTransportation Added with: 1.5.3
Hierarchy: Scripting Root > Tasks > Main Task > CargoTransportation
Tasking Type: Main Task
For: Helicopters
Available Under: Helicopters
Description: A function which allows a Transport Helicopter to have access to the "All Cargo" radio item. This in turn allows you to select one of the Cargo containers you have placed in the map. A red smoke marker will be spawned when you have selected one and you can then enable the cargo lifting cues to maneuver you into the correct position for attaching said cargo.
Format: This task needs to be in the following format.
CargoTransportation = {
 id = "CargoTransportation",
 params = {
  groupId = number StaticObject:getID()),
  zoneId = number The ID of a trigger zone
 }

Optional Parameters: Both parameters are optional and does not seem to restrict the user in his choice as one would expect. Initial testing also found no response from AI.

Enumerators: N/A
Examples:
Notes: See article Mission Editor: AI Tasking for more information on how AI tasking is handled within DCS.

There is a discrepancy between StaticObject.Category list and the category returned by getCategory() for objects of the type "Cargo" placed in the editor, the enumeration

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