taskState: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(populated with empty template)
No edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| (description) |= Description
| Returns the current state of a task.
 
'''Possible return values are:'''
* None
* Created
* Assigned
* Succeeded
* Failed
* Canceled
|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''(command)''' |= Syntax
| [[String]] <nowiki>=</nowiki> '''taskState''' [[Task]] |= Syntax
 
|p1= |= PARAMETER1
 
|p2= |= PARAMETER2


|p3= |= PARAMETER3
|p1= [[Task]] - the task you want to query|= PARAMETER1


| |= RETURNVALUE  
| [[String]] - current state of task|= RETURNVALUE  




|x1= <code>(example)</code>|= EXAMPLE1  
|x1= <code>currentTask <nowiki>=</nowiki> player createSimpleTask "NewTask";
TaskStateString <nowiki>=</nowiki> taskState currentTask;
hint format["Taskstate: %1",TaskStateString];</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________


| |= SEEALSO  
| [[createSimpleTask]] |= SEEALSO  


|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  

Revision as of 16:27, 4 June 2009

Hover & click on the images for description

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

Notes

Bottom Section