Description
Returns the current state of a task.
Syntax
taskState task
Parameters:
task: Task - the task you want to query
Returns: String - current state of task - can be one of:
- "None"
- "Created"
- "Assigned"
- "Succeeded"
- "Failed"
- "Canceled"
Examples
Example 1
tskSomeTask = player createSimpleTask ["NewTask"];
hint format["Taskstate: %1", taskState tskSomeTask];
See also
Tasks · createSimpleTask · removeSimpleTask · setSimpleTaskDescription · setSimpleTaskDestination · setTaskResult · setTaskState