createTask: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)]]" to "{{GameCategory|arma2|Scripting Commands}}")
mNo edit summary
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma2 |Game name=
|game1= arma2
|version1= 1.00


|gr1= Briefing |GROUP1=
|game2= arma2oa
|version2= 1.50


|gr2= Teams |GROUP2=
|game3= tkoh
|version3= 1.00


|1.00|Game version=
|game4= arma3
____________________________________________________________________________________________
|version4= 0.50


| Create a new AI task (subtask of parentTask). Type is name of registered task type. |DESCRIPTION=
|gr1= Briefing
____________________________________________________________________________________________


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


|p1= teamMember: [[Team Member]] |PARAMETER1=
|descr= Create a new AI task (subtask of parentTask). Type is name of registered task type.


|p2= [type, parentTask]: [[Array]]|PARAMETER2=
|s1= teamMember [[createTask]] [<nowiki/>[type, parentTask], priority, name1, value1, ...]


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


|p4= parentTask (optional): [[Task]] |PARAMETER4=
|p2= type: [[String]] - {{hl|name}} defined in {{hl|CfgTasks}}


|p5= priority: [[Number]] |PARAMETER5=
|p3= parentTask: [[Task]] - (Optional)


|p6= name1: [[String]] |PARAMETER6=
|p4= priority: [[Number]]


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


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


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


| |MPBEHAVIOUR=
|x1=
 
|seealso= [[Tasks]] [[type]] [[briefing]] [[createSimpleTask]] [[simpleTasks]] [[currentTask]] [[currentTasks]] [[setCurrentTask]] [[taskState]] [[setTaskState]] [[taskResult]] [[setTaskResult]] [[taskCompleted]] [[removeSimpleTask]]
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Briefing|{{uc:{{PAGENAME}}}}]]

Latest revision as of 06:30, 27 November 2023

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, ...]
Parameters:
teamMember: Team Member
type: String - name defined in CfgTasks
parentTask: Task - (Optional)
priority: Number
nameN: String
valueN: 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