createTask: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
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|Comments=
{{Command


| arma2 |Game name=
| arma2


|gr1= Briefing |GROUP1=
|gr1= Briefing


|gr2= Teams |GROUP2=
|gr2= Teams


|1.00|Game version=
|1.00


| Create a new AI task (subtask of parentTask). Type is name of registered task type. |DESCRIPTION=
| 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] |SYNTAX=
| teamMember [[createTask]] [<nowiki/>[type, parentTask], priority, name1, value1, (...), nameN, valueN]


|p1= teamMember: [[Team Member]] |PARAMETER1=
|p1= teamMember: [[Team Member]]


|p2= [type, parentTask]: [[Array]]|PARAMETER2=
|p2= [type, parentTask]: [[Array]]


|p3= type: [[String]] - <tt>name</tt> defined in <tt>CfgTasks</tt> |PARAMETER3=
|p3= type: [[String]] - <tt>name</tt> defined in <tt>CfgTasks</tt>


|p4= parentTask (optional): [[Task]] |PARAMETER4=
|p4= parentTask (optional): [[Task]]


|p5= priority: [[Number]] |PARAMETER5=
|p5= priority: [[Number]]


|p6= name1: [[String]] |PARAMETER6=
|p6= name1: [[String]]


|p7= value1: [[String]] |PARAMETER7=
|p7= value1: [[String]]


| [[Task]] |RETURNVALUE=
| [[Task]]
<!--
<!--
|x1= <code>(example)</code>|EXAMPLE1=
|x1= <code>(example)</code>
-->
-->


| [[Tasks]] [[type]] [[briefing]] [[createSimpleTask]] [[simpleTasks]] [[currentTask]] [[currentTasks]] [[setCurrentTask]] [[taskState]] [[setTaskState]] [[taskResult]] [[setTaskResult]] [[taskCompleted]] [[removeSimpleTask]] |SEEALSO=
| [[Tasks]] [[type]] [[briefing]] [[createSimpleTask]] [[simpleTasks]] [[currentTask]] [[currentTasks]] [[setCurrentTask]] [[taskState]] [[setTaskState]] [[taskResult]] [[setTaskResult]] [[taskCompleted]] [[removeSimpleTask]]


|  |MPBEHAVIOUR=
|  |MPBEHAVIOUR=

Revision as of 00:12, 18 January 2021

Hover & click on the images for description

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

Notes

Bottom Section