currentTasks: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|descr=([0-2]\.[0-9]{2}) * + *\| *([^=]{12})" to "|version1= $1 |descr= $2") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2 | |game1= arma2 | ||
|version1= 1.00 | |||
|game2= arma2oa | |||
|version2= 1.50 | |||
|game3= tkoh | |||
|version3= 1.00 | |||
|game4= arma3 | |||
|version4= 0.50 | |||
|gr1= Briefing | |gr1= Briefing | ||
Line 7: | Line 17: | ||
|gr2= Teams | |gr2= Teams | ||
|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: | |||
|descr= | |||
* <tt>"_this"</tt> [[Team Member]] - the [[teamMember]] [[agent]] the task is assigned to | * <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>"_taskType"</tt> [[String]] - the name of the task (see [[registeredTasks]]) | ||
Line 19: | Line 27: | ||
* <tt>"_task"</tt>[[Task]] - often null | * <tt>"_task"</tt>[[Task]] - often null | ||
|s1= | |s1= [[currentTasks]] teamMember | ||
|p1= teamMember: [[Team Member]] - [[teamMember]] [[agent]] | |p1= teamMember: [[Team Member]] - [[teamMember]] [[agent]] | ||
Line 29: | Line 37: | ||
|seealso= [[taskCompleted]], [[registerTask]], [[registeredTasks]], [[unregisterTask]], [[sendTask]], [[createTask]] | |seealso= [[taskCompleted]], [[registerTask]], [[registeredTasks]], [[unregisterTask]], [[sendTask]], [[createTask]] | ||
}} | }} | ||
Revision as of 22:53, 13 June 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