dcsext.ai.options

DCS AI options.

Contents

  1. Functions
    1. _t.create(optid, value)
    2. _t.createAirFormation(ftype, dist, side)
    3. _t.wrappedOption(optiontbl)

Functions

_t.create(optid, value)

Create an option task table.

Parameters

optid
the option ID, from AI.Option..id.
value
option appropriate value to set the option to

Returns

  • table, dcsext.enum.TASKTYPE.OPTION

_t.createAirFormation(ftype, dist, side)

Constructs either a simple or advanced formation spec value which can then be used in Controller:setOption and dcsext friends to set the formation of an air group.

Parameters

ftype
formation type from dcsext.enum.FORMATION.TYPE
dist
(optional) distance enum from dcsext.enum.FORMATION.DISTANCE
side
(optional) side enum from dcsext.enum.FORMATION.SIDE

Returns

  • table, dcsext.enum.TASKTYPE.OPTION

_t.wrappedOption(optiontbl)

Takes an options table from ai.options.create() and wraps the option so it is able to be stuck into an advanced waypoint task list.

Parameters

optiontbl
options table from dcsext.ai.options.create()

Returns

  • table, dcsext.enum.TASKTYPE.TASK