currentTasks: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}") |
Lou Montana (talk | contribs) 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 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 20: | Line 18: | ||
* <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|DESCRIPTION= | ||
| '''currentTasks''' teamMember |SYNTAX= | | '''currentTasks''' teamMember |SYNTAX= | ||
Line 31: | Line 28: | ||
|x1= <code>[[currentTasks]] [[teamMember]] _agent</code>|EXAMPLE1= | |x1= <code>[[currentTasks]] [[teamMember]] _agent</code>|EXAMPLE1= | ||
| [[taskCompleted]], [[registerTask]], [[registeredTasks]], [[unregisterTask]], [[sendTask]], [[createTask]] |SEEALSO= | | [[taskCompleted]], [[registerTask]], [[registeredTasks]], [[unregisterTask]], [[sendTask]], [[createTask]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 00:45, 17 January 2021
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:
- "_this" Team Member - the teamMember agent the task is assigned to
- "_taskType" String - the name of the task (see registeredTasks)
- "_thisCreated" Number - 1 or 0
- "_thisRunning" Number - 1 or 0
- "_totalCreated" Number - total number of tasks
- "_totalRunning" Number - total number of running tasks
- "_task"Task - often null
- 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
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