Difference between revisions of "DCS task mission"
From DCS World Wiki - Hoggitworld.com
m (1 revision imported) |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 21: | Line 21: | ||
id = 'Mission', | id = 'Mission', | ||
params = { | params = { | ||
+ | airborne = boolean, | ||
route = { | route = { | ||
points = { | points = { | ||
[1] = { | [1] = { | ||
type = enum AI.Task.WaypointType, | type = enum AI.Task.WaypointType, | ||
− | airdromeId = Airbase.ID, | + | airdromeId = Airbase.ID, |
+ | timeReFuAr = number, | ||
helipadId = Airbase.ID, | helipadId = Airbase.ID, | ||
+ | linkUnit = Unit Id, | ||
action = enum AI.Task.TurnMethod, | action = enum AI.Task.TurnMethod, | ||
x = Distance, | x = Distance, | ||
Line 37: | Line 40: | ||
ETA_locked = boolean, | ETA_locked = boolean, | ||
name = string, | name = string, | ||
− | task = Task | + | task = Task, |
}, | }, | ||
[2] = { | [2] = { | ||
Line 61: | Line 64: | ||
''type:'' Waypoint type. See [[DCS_enum_AI|AI enumerator page]] for more details. | ''type:'' Waypoint type. See [[DCS_enum_AI|AI enumerator page]] for more details. | ||
+ | |||
+ | ''speed:'' Speed in meters per second the group will attempt to travel at. Note each unit has its own maximum achievable speed | ||
''action:'' Waypoint action type. See [[DCS_enum_AI|AI enumerator page]] for more details. | ''action:'' Waypoint action type. See [[DCS_enum_AI|AI enumerator page]] for more details. | ||
− | ''alt:'' Altitude of waypoint. If converted from Vec3 this is the y coordinate. This item is required for Aircraft, but is optional for ground vehicles. | + | ''alt:'' Altitude of waypoint. If converted from Vec3 this is the y coordinate. This item is required for Aircraft, but is optional for ground vehicles. As of 2.5.6 this value can be set to negative numbers. Specifically this will submerge submarines. |
'''Optional Parameters''': | '''Optional Parameters''': | ||
− | + | ||
− | |||
''speed_locked:'' boolean value that will determine if units will attempt to travel at the specified speed | ''speed_locked:'' boolean value that will determine if units will attempt to travel at the specified speed | ||
Line 78: | Line 82: | ||
''alt_type:'' Altitude type; Radio or Barometric. Defaults to barometric. If specified the altitude of the waypoint can be defined as AGL or MSL. Only applies to aircraft. | ''alt_type:'' Altitude type; Radio or Barometric. Defaults to barometric. If specified the altitude of the waypoint can be defined as AGL or MSL. Only applies to aircraft. | ||
− | '' | + | ''task:'' All tasks, enroute tasks, commands, and options are defined here. |
+ | |||
+ | '''Waypoint Type Specific Parameters''' | ||
+ | The following are used with take-off and landing waypoint types. | ||
− | '' | + | ''helipadId:'' Used when the waypoint is associated with the a static object or a unit placed in the mission editor. Needs to be the unitId associated with the object. |
− | '' | + | ''linkUnit:'' Used when the waypoint is associated with the a static object or a unit placed in the mission editor. Value is identical to helipadId, but it is required. |
+ | |||
+ | ''airdromeId:'' Specifies the airbaseId the aircraft group will attempt to use. AI will only land if airbase is friendly. If not provided the AI will land at the nearest valid base to the coordinates. | ||
+ | ''timeReFuAr: '' If the waypoint type is a landReFuAr this value determines how long in minutes the unit will be stationary for. | ||
|enum= | |enum= | ||
Line 93: | Line 103: | ||
|notes= See article [[Mission Editor: AI Tasking]] for more information on how AI tasking is handled within DCS. | |notes= See article [[Mission Editor: AI Tasking]] for more information on how AI tasking is handled within DCS. | ||
+ | |||
+ | |||
+ | As of 2.5.6 a new parameter of airborne has been added to the root tasking for a flight. This is so the game knows that the aircraft group you are assigning a bunch of aircraft specific waypoint information is in fact being assigned to an aircraft group. This parameter is required if the group is assigned the task after spawn they are spawned in. This fixes a long standing bug where AI would ignore waypoint information and default to "Fly Over" waypoint type or airport Id if it was different from where it took off from. | ||
Latest revision as of 22:12, 20 February 2022