DCS task fac AttackGroup

From DCS World Wiki - Hoggitworld.com


Task: FAC_AttackGroup Added with: 1.2.4
Hierarchy: Scripting Root > Tasks > Main task > FAC_AttackGroup
Tasking Type: Main task
For: Airplanes, Helicopters, Ground Vehicles
Available Under: AFAC, Ground Nothing
Description: Assigns the controlled group to act as a Forward Air Controller or JTAC in attacking the specified group. This task adds the group to the JTAC radio menu and interacts with a player to destroy the target.
Format: This task needs to be in the following format.
FAC_AttackGroup = { 
  id = 'FAC_AttackGroup', 
  params = { 
    groupId = Group.ID,
    weaponType = number,
    designation = enum AI.Task.Designation,
    datalink = boolean
    frequency = number
    modulation = enum radio.modulation
    callname = number callsignId
    number = number callsignNum    
  } 
}

Required parameters:

groupId: Defines the group that is to be assigned by JTAC

Optional Parameters:

weaponType: Weapon type enumerator that defines the preferred weapon of choice to smite thy enemy.

designation: enumerator defining the preferred designation to be used. May be limited by line of sight.

datalink: Boolean value that determines whether or not the JTAC will send the 9-line via SADL. By default this option is enabled.

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

AI.Task.Designation

"NO"          = "No"
"WP"          = "WP"
"IR_POINTER"  = "IR-Pointer"
"LASER"       = "Laser"
"AUTO"        = "Auto"

Template:DCS enum radio list JTAC callsigns

1  Axeman	
2  Darknight
3  Warrior
4  Pointer	
5  Eyeball	
6  Moonbeam	
7  Whiplash	
8  Finger	
9  Pinpoint	
10 Ferret	
11 Shaba	
12 Playboy	
13 Hammer	
14 Jaguar	
15 Deathstar	
16 Anvil	
17 Firefly	
18 Mantis	
19 Badger
Examples:
Notes: See article Mission Editor: AI Tasking for more information on how AI tasking is handled within DCS.

Assignment of callsign and radio is relatively new, need to investigate if those values are optional and if values are inherited from previous FAC tasks. ~ Grimes

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