createTask: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:ArmA 2: New Scripting Commands List\|{{uc:{{PAGENAME}}}}\]\]\s*" to "")
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| teamMember '''createTask ''' <nowiki>[</nowiki>[type, parentTask], priority, name1, value1...nameN, valueN] |SYNTAX=
| teamMember [[createTask]] [<nowiki/>[type, parentTask], priority, name1, value1, (...), nameN, valueN] |SYNTAX=


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


|p2= <nowiki>[</nowiki>[type, parentTask], priority, name1, value1...nameN, valueN]: [[Array]]|PARAMETER2=  
|p2= [type, parentTask]: [[Array]]|PARAMETER2=


|p3= [type, parentTask]: [[Array]]|PARAMETER3=
|p3= type: [[String]] - <tt>name</tt> defined in <tt>CfgTasks</tt> |PARAMETER3=
|p4= type: [[String]] - <tt>name</tt> property in <tt>CfgTasks</tt> classess |PARAMETER3=
|p5= parentTask (optional): [[Task]]|PARAMETER3=
|p6= priority: [[Number]]|PARAMETER3=
|p7= name1: [[String]]|PARAMETER3=
|p8= value1: [[String]]|PARAMETER3=  


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


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


|x1= <code>(example)</code>|EXAMPLE1=  
|p6= name1: [[String]] |PARAMETER6=


|p7= value1: [[String]] |PARAMETER7=
| [[Task]] |RETURNVALUE=
____________________________________________________________________________________________
<!--
|x1= <code>(example)</code>|EXAMPLE1=
-->
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[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]] |SEEALSO=


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}


Line 44: Line 46:


<h3 style='display:none'>Bottom Section</h3>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Revision as of 21:40, 19 September 2019

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:
Uncategorised

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