taskState: Difference between revisions
Jump to navigation
Jump to search
(populated with empty template) |
HeliJunkie (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Returns the current state of a task. | ||
'''Possible return values are:''' | |||
* None | |||
* Created | |||
* Assigned | |||
* Succeeded | |||
* Failed | |||
* Canceled | |||
|= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| ''' | | [[String]] <nowiki>=</nowiki> '''taskState''' [[Task]] |= Syntax | ||
| | |p1= [[Task]] - the task you want to query|= PARAMETER1 | ||
| |= RETURNVALUE | | [[String]] - current state of task|= RETURNVALUE | ||
|x1= <code> | |x1= <code>currentTask <nowiki>=</nowiki> player createSimpleTask "NewTask"; | ||
TaskStateString <nowiki>=</nowiki> taskState currentTask; | |||
hint format["Taskstate: %1",TaskStateString];</code>|= EXAMPLE1 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[createSimpleTask]] |= SEEALSO | ||
| |= MPBEHAVIOUR | | |= MPBEHAVIOUR |
Revision as of 16:27, 4 June 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:
- createSimpleTask
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