Task:
|
WrappedAction
|
Added with: 1.1
|
Hierarchy:
|
Scripting Root > Tasks > Main task > WrappedAction
|
|
Tasking Type:
|
Main task
|
For:
|
Airplanes, Helicopters, Ships, Ground Vehicles
|
Available Under:
|
All
|
|
Description:
|
Functions as a wrapper for setting commands and options as a task within a mission, comboTask, or controlledTask. When setting a command the action table entry needs to be in the
|
|
Format:
|
This task needs to be in the following format for a command
WrappedAction= {
id = 'WrappedAction',
params = {
action = {
commandEntry,
},
}
}
When setting an option the follow format is to be used:
WrappedAction= {
id = 'WrappedAction',
params = {
action = {
id = "Option",
params = {
name = enumName,
value = enumValue,
},
},
}
}
Required parameters:
Optional Parameters:
|
Enumerators:
|
AI Enumerators
|
|
Examples:
|
The following would set the reaction to threat setting of an aircraft group to "evade fire".
WrappedAction= {
id = 'WrappedAction',
params = {
action = {
id = "Option",
params = {
name = 1,
value = 2,
},
},
}
}
|
Notes:
|
See article Mission Editor: AI Tasking for more information on how AI tasking is handled within DCS. Check the relevant option you wish to call on its respective page for valid enumerator name and value entries.
|
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
|