DCS task bombing

From DCS World Wiki - Hoggitworld.com

Task: Bombing Added with: 1.2.4
Hierarchy: Scripting Root > Tasks > Main task > Bombing
Tasking Type: Main task
For: Airplanes, Helicopters
Available Under:
Description: Assigns a point on the ground for which the AI will attack. Best used for discriminant carpet bombing of a target or having a GBU hit a specific point on the map.
Format: This task needs to be in the following format.
Bombing = { 
 id = 'Bombing', 
 params = { 
   point = Vec2,
   weaponType = number, 
   expend = enum AI.Task.WeaponExpend,
   attackQty = number, 
   attackQtyLimit = boolean,
   direction = Azimuth, 
   groupAttack = boolean, 
   altitude = number
   altitudeEnabled = boolean,

Required parameters: point: vec2 coordinate of the target. Can also be an x and y values directly in params table.

attackQty: Number of times the group will attack if the target.

Optional Parameters: All other variables are optional. Some variables require other entries, for example the boolean values require the corresponding value if the boolean is true.

expend: Enum that defines how much munitions the AI will expend per attack run.

attackQtyLimit: boolean that defines whether or not the attackQty value will be used.

groupAttack: If true then each aircraft in the group will attack the point.

altitude: Number in meters at which you want the aircraft to engage from

altitudeEnabled: Boolean value for whether or not the altitude check applies

Enumerators: weaponType is a number associated with a correspond weapons flags


"QUARTER" = "Quarter"
"TWO"     = "Two"
"ONE"     = "One"
"FOUR"    = "Four"
"HALF"    = "Half"
"ALL"     = "All"
Examples: The following will make the group "droneyTheDrone" destroy a bridge with a pair of guided bombs.
 local target = {}
 target.point = {x = trigger.misc.getZone('bridge').point.x, y = trigger.misc.getZone('bridge').point.z}
 target.expend = "Two"
 target.weaponType = 14
 target.attackQty = 1
 local engage = {id = 'Bombing', params = target}
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, groundEscort, RecoveryTanker

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

Commands: script, setCallsign, setFrequency, switchWaypoint, stopRoute, switchAction, setInvisible, setImmortal, 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