currentTasks: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
(some info)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| List all uncompleted tasks. |DESCRIPTION=
| Returns array with all [[taskCompleted | uncompleted]] tasks for the given agent. [[getVariable]] could be used on [[Task]] to get the following special local variables from the task:
 
* <tt>"_this"</tt> [[Team Member]] - the [[teamMember]] [[agent]] the task is assigned to
* <tt>"_taskType"</tt> [[String]] - the name of the task (see [[registeredTasks]])
* <tt>"_thisCreated"</tt> [[Number]] - 1 or 0
* <tt>"_thisRunning"</tt> [[Number]] - 1 or 0
* <tt>"_totalCreated"</tt> [[Number]] - total number of tasks
* <tt>"_totalRunning"</tt> [[Number]] - total number of running tasks
* <tt>"_task"</tt>[[Task]] - often null|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 14: Line 22:
|p1= member: [[Team Member]] |PARAMETER1=  
|p1= member: [[Team Member]] |PARAMETER1=  


| [[Array]] |RETURNVALUE=  
| [[Array]] - array of [[Task]]s |RETURNVALUE=  




|x1= <code>_playerTasks <nowiki>=</nowiki> currentTasks [[teamMember]] player</code>|EXAMPLE1=  
|x1= <code>[[currentTasks]] [[teamMember]] _agent</code>|EXAMPLE1=  


____________________________________________________________________________________________
____________________________________________________________________________________________


| [[taskCompleted]]  |SEEALSO=  
| [[taskCompleted]], [[registerTask]], [[registeredTasks]], [[unregisterTask]], [[sendTask]], [[createTask]], [[currentTasks]]  |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  

Revision as of 20:14, 15 September 2019

Hover & click on the images for description

Description

Description:
Returns array with all uncompleted tasks for the given agent. getVariable could be used on Task to get the following special local variables from the task:
Groups:
Uncategorised

Syntax

Syntax:
currentTasks member
Parameters:
member: Team Member
Return Value:
Array - array of Tasks

Examples

Example 1:
currentTasks teamMember _agent

Additional Information

See also:
taskCompletedregisterTaskregisteredTasksunregisterTasksendTaskcreateTaskcurrentTasks

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