registeredTasks: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(18 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
|gr2= Teams | |gr2= Teams | ||
|descr= Returns array with all registered task types for the given agent. The values are the names set in | |descr= Returns array with all registered task types for the given agent. The values are the names set in {{hl|CfgTasks}} classes {{hl|name}} property. The same names are used for [[unregisterTask]] | ||
|s1= [[registeredTasks]] teamMember | |s1= [[registeredTasks]] teamMember | ||
Line 25: | Line 25: | ||
|r1= [[Array]] of [[String]]s - names of tasks | |r1= [[Array]] of [[String]]s - names of tasks | ||
|x1= < | |x1= <sqf>tasklist = registeredTasks teamMember _agent;</sqf> | ||
|x2= < | |x2= <sqf> | ||
_rabbit = createAgent ["Rabbit_F", position player,[], 0, "None"]; | |||
hint str registeredTasks teamMember _rabbit; // shows ["Animal Main Task"] in Arma 3 | |||
</sqf> | |||
|seealso= [[registerTask]] | |seealso= [[registerTask]] [[unregisterTask]] [[sendTask]] [[createTask]] [[currentTasks]] [[taskCompleted]] | ||
}} | }} |
Latest revision as of 19:43, 3 September 2024
Description
- Description:
- Returns array with all registered task types for the given agent. The values are the names set in CfgTasks classes name property. The same names are used for unregisterTask
- Groups:
- BriefingTeams
Syntax
- Syntax:
- registeredTasks teamMember
- Parameters:
- teamMember: Team Member - teamMember agent
- Return Value:
- Array of Strings - names of tasks
Examples
- Example 1:
- Example 2:
- _rabbit = createAgent ["Rabbit_F", position player,[], 0, "None"]; hint str registeredTasks teamMember _rabbit; // shows ["Animal Main Task"] in Arma 3
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