registeredTasks: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
Lou Montana (talk | contribs) m (Text replacement - " {3,}\|" to " |") |
||
Line 20: | Line 20: | ||
|[[Array]] of [[String]]s - names of tasks | |[[Array]] of [[String]]s - names of tasks | ||
|x1= <code>tasklist = [[registeredTasks]] [[teamMember]] _agent;</code> | |x1= <code>tasklist = [[registeredTasks]] [[teamMember]] _agent;</code> | ||
Line 27: | Line 26: | ||
[[hint]] [[str]] [[registeredTasks]] [[teamMember]] _rabbit;</code> | [[hint]] [[str]] [[registeredTasks]] [[teamMember]] _rabbit;</code> | ||
Hint shows <tt>["Animal Main Task"]</tt> in Arma 3. | Hint shows <tt>["Animal Main Task"]</tt> in Arma 3. | ||
| [[registerTask]], [[unregisterTask]], [[sendTask]], [[createTask]], [[currentTasks]], [[taskCompleted]] | | [[registerTask]], [[unregisterTask]], [[sendTask]], [[createTask]], [[currentTasks]], [[taskCompleted]] |
Revision as of 17:57, 18 January 2021
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:
tasklist = registeredTasks teamMember _agent;
- Example 2:
_rabbit = createAgent ["Rabbit_F", position player,[], 0, "None"]; hint str registeredTasks teamMember _rabbit;
Hint 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