currentTasks: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[cC]ommand[_ ][gG]roup:[_ ][^|]+\|\{*uc:{{PAGENAME}*]\]" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma2 |Game name=
| arma2


|gr1= Briefing |GROUP1=
|gr1= Briefing


|gr2= Teams |GROUP2=
|gr2= Teams


|1.00|Game version=
|1.00


| 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:
| 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:
Line 17: Line 17:
* <tt>"_totalCreated"</tt> [[Number]] - total number of tasks
* <tt>"_totalCreated"</tt> [[Number]] - total number of tasks
* <tt>"_totalRunning"</tt> [[Number]] - total number of running tasks
* <tt>"_totalRunning"</tt> [[Number]] - total number of running tasks
* <tt>"_task"</tt>[[Task]] - often null|DESCRIPTION=
* <tt>"_task"</tt>[[Task]] - often null


| '''currentTasks''' teamMember |SYNTAX=
| '''currentTasks''' teamMember


|p1= teamMember: [[Team Member]] - [[teamMember]] [[agent]] |PARAMETER1=
|p1= teamMember: [[Team Member]] - [[teamMember]] [[agent]]


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




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




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


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  

Revision as of 00:27, 18 January 2021

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

Syntax

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

Examples

Example 1:
currentTasks teamMember _agent

Additional Information

See also:
taskCompletedregisterTaskregisteredTasksunregisterTasksendTaskcreateTask

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