---
name: "createTask"
type: command
status: ok
groups: ["Briefing", "Teams"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/createTask
revid: 351331
updated: 2023-11-27T05:30:49Z
---

# createTask

*Command · Briefing, Teams · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Create a new AI task (subtask of parentTask). Type is name of registered task type.

## Syntax

```sqf
teamMember createTask [[type, parentTask], priority, name1, value1, ...]
```

**Parameters:**

- `teamMember`: [Team Member](../topics/Team_Member.md)
- `type`: [String](../topics/String.md) - `name` defined in `CfgTasks`
- `parentTask`: [Task](../topics/Task.md) - (Optional)
- `priority`: [Number](../topics/Number.md)
- `nameN`: [String](../topics/String.md)
- `valueN`: [String](../topics/String.md)

**Returns:** [Task](../topics/Task.md)

## See also

Tasks · [type](../commands/type.md) · briefing · [createSimpleTask](../commands/createSimpleTask.md) · [simpleTasks](../commands/simpleTasks.md) · [currentTask](../commands/currentTask.md) · [currentTasks](../commands/currentTasks.md) · [setCurrentTask](../commands/setCurrentTask.md) · [taskState](../commands/taskState.md) · [setTaskState](../commands/setTaskState.md) · [taskResult](../commands/taskResult.md) · [setTaskResult](../commands/setTaskResult.md) · [taskCompleted](../commands/taskCompleted.md) · [removeSimpleTask](../commands/removeSimpleTask.md)

<sub>Source: [BI Community Wiki — createTask](https://community.bistudio.com/wiki/createTask) (revision 351331).</sub>
