currentTasks: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
||
Line 33: | Line 33: | ||
|r1= [[Array]] - array of [[Task]]s | |r1= [[Array]] - array of [[Task]]s | ||
|x1= < | |x1= <sqf>currentTasks teamMember _agent</sqf> | ||
|seealso= [[taskCompleted]] [[registerTask]] [[registeredTasks]] [[unregisterTask]] [[sendTask]] [[createTask]] | |seealso= [[taskCompleted]] [[registerTask]] [[registeredTasks]] [[unregisterTask]] [[sendTask]] [[createTask]] | ||
}} | }} |
Revision as of 10:21, 13 May 2022
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:
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