currentTasks: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game version" to "|Game version=") |
Killzone Kid (talk | contribs) (some info) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | 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> | |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
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:
- Uncategorised
Syntax
- Syntax:
- currentTasks member
- Parameters:
- member: Team Member
- 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