createSimpleTask: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
*Creating child will position the new task just under the parent task. | *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. | *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. (I.E. If | *Succeeding parent task will automatically succeed childs, whatever their [[taskState]] was set to. (I.E. If a task is set as a child to another, it will be completed when its parent is complete.. no matter if the child task really was or not). | ||
</dd> | </dd> | ||
<!-- Note Section END --> | <!-- Note Section END --> |
Revision as of 20:27, 28 September 2009
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:
- removeSimpleTasksetSimpleTaskDescriptionsetSimpleTaskDestinationsetTaskStatesetTaskResulttaskState
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. (I.E. If a task is set as a child to another, it will be completed when its parent is complete.. no matter if the child task really was or not).