createTask: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|gr1= Briefing | |gr1= Briefing | ||
|gr2= Teams | |gr2= Teams | ||
|1.00 | |1.00 | ||
| Create a new AI task (subtask of parentTask). Type is name of registered task type. | | Create a new AI task (subtask of parentTask). Type is name of registered task type. | ||
| teamMember [[createTask]] [<nowiki/>[type, parentTask], priority, name1, value1, (...), nameN, valueN] | | teamMember [[createTask]] [<nowiki/>[type, parentTask], priority, name1, value1, (...), nameN, valueN] | ||
|p1= teamMember: [[Team Member]] | |p1= teamMember: [[Team Member]] | ||
|p2= [type, parentTask]: [[Array]] | |p2= [type, parentTask]: [[Array]] | ||
|p3= type: [[String]] - <tt>name</tt> defined in <tt>CfgTasks</tt> | |p3= type: [[String]] - <tt>name</tt> defined in <tt>CfgTasks</tt> | ||
|p4= parentTask (optional): [[Task]] | |p4= parentTask (optional): [[Task]] | ||
|p5= priority: [[Number]] | |p5= priority: [[Number]] | ||
|p6= name1: [[String]] | |p6= name1: [[String]] | ||
|p7= value1: [[String]] | |p7= value1: [[String]] | ||
| [[Task]] | | [[Task]] | ||
<!-- | <!-- | ||
|x1= <code>(example)</code> | |x1= <code>(example)</code> | ||
--> | --> | ||
| [[Tasks]] [[type]] [[briefing]] [[createSimpleTask]] [[simpleTasks]] [[currentTask]] [[currentTasks]] [[setCurrentTask]] [[taskState]] [[setTaskState]] [[taskResult]] [[setTaskResult]] [[taskCompleted]] [[removeSimpleTask]] | | [[Tasks]] [[type]] [[briefing]] [[createSimpleTask]] [[simpleTasks]] [[currentTask]] [[currentTasks]] [[setCurrentTask]] [[taskState]] [[setTaskState]] [[taskResult]] [[setTaskResult]] [[taskCompleted]] [[removeSimpleTask]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:12, 18 January 2021
Description
- Description:
- Create a new AI task (subtask of parentTask). Type is name of registered task type.
- Groups:
- BriefingTeams
Syntax
- Syntax:
- teamMember createTask [[type, parentTask], priority, name1, value1, (...), nameN, valueN]
- Parameters:
- teamMember: Team Member
- [type, parentTask]: Array
- type: String - name defined in CfgTasks
- parentTask (optional): Task
- priority: Number
- name1: String
- value1: String
- Return Value:
- Task
Examples
- Examples:
- Example needed
Additional Information
- See also:
- Tasks type briefing createSimpleTask simpleTasks currentTask currentTasks setCurrentTask taskState setTaskState taskResult setTaskResult taskCompleted removeSimpleTask
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note