dcsex.ai.exec

Exec - DCS AI execution functions and helpers

Contents

  1. Functions
    1. _t.createTaskTbl(id, params)
    2. _t.wrapTask(task, tasktype)
    3. _t.setTask(controller, task)
    4. _t.pushTask(controller, task)
    5. _t.execute(controller, tasklist, taskfunc)

Functions

_t.createTaskTbl(id, params)

Parameters

id
task ID
params
the params table that defines the task

Returns

  • a compatiable task table

_t.wrapTask(task, tasktype)

Parameters

task
task table as generated by createTaskTbl
tasktype
one of values defined in enum.TASKTYPE

_t.setTask(controller, task)

Parameters

controller
DCS Unit Group Controller instance
task
a DCS compliant task table definition, likely from createTaskTbl

_t.pushTask(controller, task)

Parameters

controller
DCS Unit Group Controller instance
task
a DCS compliant task table definition, likely from createTaskTbl

_t.execute(controller, tasklist, taskfunc)

Parameters

controller
DCS Unit Group Controller instance
tasklist
a list of wrapped task entries, see wrapTask()
taskfunc
function reference to either ex.ai.exec.setTask or ex.ai.exec.pushTask