registeredTasks: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game name" to "|Game name=") |
Killzone Kid (talk | contribs) (see also) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Returns array with all registered task types for the given agent. The values are the names set in <tt>CfgTasks</tt> classes <tt>name</tt> property. The same names are used for [[unregisterTask]] |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''registeredTasks''' | | '''registeredTasks''' teamMember |SYNTAX= | ||
|p1= | |p1= teamMember: [[Team Member]] - [[teamMember]] [[agent]] |PARAMETER1= | ||
|p2= |PARAMETER2= | |p2= |PARAMETER2= | ||
Line 18: | Line 18: | ||
|p3= |PARAMETER3= | |p3= |PARAMETER3= | ||
|[[Array]] of [[String]]s |RETURNVALUE= | |[[Array]] of [[String]]s - names of tasks |RETURNVALUE= | ||
|x1= <code>tasklist = [[registeredTasks]] [[teamMember]] | |x1= <code>tasklist = [[registeredTasks]] [[teamMember]] _agent;</code>|EXAMPLE1= | ||
|x2= <code>_rabbit = [[createAgent]] ["Rabbit_F", [[position]] [[player]],[], 0, "None"]; | |x2= <code>_rabbit = [[createAgent]] ["Rabbit_F", [[position]] [[player]],[], 0, "None"]; | ||
Line 29: | Line 29: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[registerTask]] |SEEALSO= | | [[registerTask]], [[unregisterTask]], [[sendTask]], [[createTask]], [[currentTasks]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 19:52, 15 September 2019
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:
- Uncategorised
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