taskState: Difference between revisions
Jump to navigation
Jump to search
(add. classification) |
mNo edit summary |
||
Line 28: | Line 28: | ||
|x1= <code>currentTask <nowiki>=</nowiki> player createSimpleTask "NewTask"; | |x1= <code>currentTask <nowiki>=</nowiki> player createSimpleTask "NewTask"; | ||
TaskStateString <nowiki>=</nowiki> taskState currentTask; | TaskStateString <nowiki>=</nowiki> taskState currentTask; | ||
hint format["Taskstate: %1",TaskStateString];</code>|= EXAMPLE1 | hint format["Taskstate: %1", TaskStateString];</code>|= EXAMPLE1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[createSimpleTask]] |= SEEALSO | | [[createSimpleTask]], [[removeSimpleTask]], [[setSimpleTaskDescription]], [[setSimpleTaskDestination]], [[setTaskResult]], [[setTaskState]] |= SEEALSO | ||
| |= MPBEHAVIOUR | | |= MPBEHAVIOUR |
Revision as of 09:49, 15 July 2009
Description
- Description:
- Returns the current state of a task.
Possible return values are:
- None
- Created
- Assigned
- Succeeded
- Failed
- Canceled
- Groups:
- Uncategorised
Syntax
- Syntax:
- String = taskState Task
- Parameters:
- Task - the task you want to query
- Return Value:
- String - current state of task
Examples
- Example 1:
currentTask = player createSimpleTask "NewTask"; TaskStateString = taskState currentTask; hint format["Taskstate: %1", TaskStateString];
Additional Information
- See also:
- createSimpleTaskremoveSimpleTasksetSimpleTaskDescriptionsetSimpleTaskDestinationsetTaskResultsetTaskState
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