currentTasks: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |r1=[[" to " |r1= [[")
m (Text replacement - "<tt>([a-zA-Z0-9\. _"']+)<\/tt>" to "{{hl|$1}}")
Line 19: Line 19:
|descr= Returns array with all [[taskCompleted | uncompleted]] tasks for the given agent.
|descr= 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:
[[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
* {{hl|"_this"}} [[Team Member]] - the [[teamMember]] [[agent]] the task is assigned to
* <tt>"_taskType"</tt> [[String]] - the name of the task (see [[registeredTasks]])
* {{hl|"_taskType"}} [[String]] - the name of the task (see [[registeredTasks]])
* <tt>"_thisCreated"</tt> [[Number]] - 1 or 0
* {{hl|"_thisCreated"}} [[Number]] - 1 or 0
* <tt>"_thisRunning"</tt> [[Number]] - 1 or 0
* {{hl|"_thisRunning"}} [[Number]] - 1 or 0
* <tt>"_totalCreated"</tt> [[Number]] - total number of tasks
* {{hl|"_totalCreated"}} [[Number]] - total number of tasks
* <tt>"_totalRunning"</tt> [[Number]] - total number of running tasks
* {{hl|"_totalRunning"}} [[Number]] - total number of running tasks
* <tt>"_task"</tt>[[Task]] - often null
* {{hl|"_task"}}[[Task]] - often null


|s1= [[currentTasks]] teamMember
|s1= [[currentTasks]] teamMember

Revision as of 23:45, 15 November 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