Difference between revisions of "DCS task attackMapObject"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
 
 
(One intermediate revision by the same user not shown)
Line 16: Line 16:
 
|form=  This task needs to be in the following format.  
 
|form=  This task needs to be in the following format.  
  
  Bombing = {  
+
  AttackMapObject = {  
 
   id = 'AttackMapObject',  
 
   id = 'AttackMapObject',  
 
   params = {  
 
   params = {  
Line 23: Line 23:
 
     expend = enum AI.Task.WeaponExpend,
 
     expend = enum AI.Task.WeaponExpend,
 
     attackQty = number,  
 
     attackQty = number,  
 +
    attackQtyLimit = boolean,
 
     direction = Azimuth,  
 
     direction = Azimuth,  
 
     groupAttack = boolean,  
 
     groupAttack = boolean,  
Line 37: Line 38:
  
 
attackQty: Number of times the group will attack if the target.
 
attackQty: Number of times the group will attack if the target.
 +
 +
attackQtyLimit: If true the attackQty value will be followed.
  
 
groupAttack: If true then each aircraft in the group will attack the target.
 
groupAttack: If true then each aircraft in the group will attack the target.

Latest revision as of 23:18, 2 April 2024


Task: AttackMapObject Added with: 1.2.4
Hierarchy: Scripting Root > Tasks > Main task > AttackMapObject
Tasking Type: Main task
For: Airplanes, Helicopters
Available Under: Ground Attack, Pinpoint Strike, RunwayAttack
Description: Assigns the nearest world object to the point for AI to attack.
Format: This task needs to be in the following format.
AttackMapObject = { 
 id = 'AttackMapObject', 
 params = { 
   point = Vec2,
   weaponType = number, 
   expend = enum AI.Task.WeaponExpend,
   attackQty = number, 
   attackQtyLimit = boolean, 
   direction = Azimuth, 
   groupAttack = boolean, 
 } 
}

Required parameters: point

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.

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

attackQtyLimit: If true the attackQty value will be followed.

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

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

AI.Task.WeaponExpend

"QUARTER" = "Quarter"
"TWO"     = "Two"
"ONE"     = "One"
"FOUR"    = "Four"
"HALF"    = "Half"
"ALL"     = "All"
Examples:
Notes: 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