createSimpleTask: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 20: Line 20:


|x1= <code>currentTask <nowiki>=</nowiki> player createSimpleTask ["NewTask"];</code>|= EXAMPLE1  
|x1= <code>currentTask <nowiki>=</nowiki> player createSimpleTask ["NewTask"];</code>|= EXAMPLE1  
|x2= <code>childTask <nowiki>=</nowiki> player createSimpleTask ["ChildTask", currentTask];</code>|= EXAMPLE2


____________________________________________________________________________________________
____________________________________________________________________________________________
Line 32: Line 33:
<dl class='command_description'>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
 
<dd class="notedate">Posted on July 15, 2009 - 07:00 (CEST)</dd>
<dt>'''[[User:Lou Montana|Lou Montana]]'''</dt>
<dd>
*Creating child will position the new task just under the parent task.
*Creating another "normal" (parent) task will create a new line '''above''' the others. Think of it if you want ordered objectives.
*Succeeding parent task will automatically succeed childs, whatever their [[taskState]] was set to.
</dd>
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 06:03, 15 July 2009

Hover & click on the images for description

Description

Description:
Creates a new Task
Groups:
Uncategorised

Syntax

Syntax:
Task = Object createSimpleTask Array
Parameters:
Object: Unit to add this new task
Array: ["TaskName"] or ["TaskName", taskParent]
Return Value:
Task - the new task

Examples

Example 1:
currentTask = player createSimpleTask ["NewTask"];
Example 2:
childTask = player createSimpleTask ["ChildTask", currentTask];

Additional Information

See also:
taskStatesetSimpleTaskDescriptionsetSimpleTaskDestinationsetTaskStatesetTaskResult

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

Posted on July 15, 2009 - 07:00 (CEST)
Lou Montana
  • Creating child will position the new task just under the parent task.
  • Creating another "normal" (parent) task will create a new line above the others. Think of it if you want ordered objectives.
  • Succeeding parent task will automatically succeed childs, whatever their taskState was set to.

Bottom Section