taskState: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 9: Line 8:


|1.00|Game version=
|1.00|Game version=
____________________________________________________________________________________________


| Returns the current state of a task.  
| Returns the current state of a task.  
Line 21: Line 19:
* Canceled
* Canceled
|DESCRIPTION=
|DESCRIPTION=
____________________________________________________________________________________________


| '''taskState'''  task |SYNTAX=
| '''taskState'''  task |SYNTAX=
Line 33: Line 30:
hint format["Taskstate: %1", taskState tskSomeTask];</code>|EXAMPLE1=  
hint format["Taskstate: %1", taskState tskSomeTask];</code>|EXAMPLE1=  


____________________________________________________________________________________________


| [[Tasks]], [[createSimpleTask]], [[removeSimpleTask]], [[setSimpleTaskDescription]], [[setSimpleTaskDestination]], [[setTaskResult]], [[setTaskState]] |SEEALSO=  
| [[Tasks]], [[createSimpleTask]], [[removeSimpleTask]], [[setSimpleTaskDescription]], [[setSimpleTaskDestination]], [[setTaskResult]], [[setTaskState]] |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 04:45, 17 January 2021

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:
Briefing

Syntax

Syntax:
taskState task
Parameters:
task: Task - the task you want to query
Return Value:
String - current state of task

Examples

Example 1:
tskSomeTask = player createSimpleTask ["NewTask"]; hint format["Taskstate: %1", taskState tskSomeTask];

Additional Information

See also:
TaskscreateSimpleTaskremoveSimpleTasksetSimpleTaskDescriptionsetSimpleTaskDestinationsetTaskResultsetTaskState

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