Difference between revisions of "DCS command start"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
 
 
Line 28: Line 28:
 
'''Optional Parameters''':
 
'''Optional Parameters''':
 
|enum= N/A
 
|enum= N/A
|exam=
+
|exam= The following verifies the group still exists and commands the group to start.
 
+
<pre>
 +
local MigGrp1 = Group.getByName('Bandit-1')
 +
if MigGrp1:isExist() then
 +
  MigCtrl1 = MigGrp1:getController()
 +
  MigCtrl1:setCommand({id = 'Start', params = {}})
 +
end
 +
</pre>
 
|notes=  
 
|notes=  
  

Latest revision as of 00:09, 30 December 2022


Task: start Added with: 1.2.4
Hierarchy: Scripting Root > Tasks > Command > start
Tasking Type: Command
For: Airplanes, Helicopters
Available Under: All tasks types
Description: If a group is set to spawn in an uncontrolled state, this command can be sent to start the group. AI will take-off from the base and follow their route as designated.
Format: This task needs to be in the following format.
Start = { 
  id = 'Start', 
  params = { 
  } 
}

Required parameters:

None

Optional Parameters:

Enumerators: N/A
Examples: The following verifies the group still exists and commands the group to start.
local MigGrp1 = Group.getByName('Bandit-1')
if MigGrp1:isExist() then
   MigCtrl1 = MigGrp1:getController()
   MigCtrl1:setCommand({id = 'Start', params = {}})
end
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