registeredTasks: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[cC]ommand[_ ][gG]roup:[_ ][^|]+\|\{*uc:{{PAGENAME}*]\]" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma2 |Game name=
| arma2


|gr1= Briefing |GROUP1=
|gr1= Briefing


|gr2= Teams |GROUP2=
|gr2= Teams


|1.00|Game version=
|1.00


| 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=
| 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]]


| '''registeredTasks''' teamMember |SYNTAX=
| '''registeredTasks''' teamMember


|p1= teamMember: [[Team Member]] - [[teamMember]] [[agent]] |PARAMETER1=
|p1= teamMember: [[Team Member]] - [[teamMember]] [[agent]]


|p2= |PARAMETER2=  
|p2=


|p3= |PARAMETER3=  
|p3=


|[[Array]] of [[String]]s - names of tasks |RETURNVALUE=
|[[Array]] of [[String]]s - names of tasks




|x1= <code>tasklist = [[registeredTasks]] [[teamMember]] _agent;</code>|EXAMPLE1=
|x1= <code>tasklist = [[registeredTasks]] [[teamMember]] _agent;</code>


|x2= <code>_rabbit = [[createAgent]] ["Rabbit_F", [[position]] [[player]],[], 0, "None"];
|x2= <code>_rabbit = [[createAgent]] ["Rabbit_F", [[position]] [[player]],[], 0, "None"];
[[hint]] [[str]] [[registeredTasks]] [[teamMember]] _rabbit;</code>
[[hint]] [[str]] [[registeredTasks]] [[teamMember]] _rabbit;</code>
Hint shows <tt>["Animal Main Task"]</tt> in Arma 3.|EXAMPLE2=
Hint shows <tt>["Animal Main Task"]</tt> in Arma 3.




| [[registerTask]], [[unregisterTask]], [[sendTask]], [[createTask]], [[currentTasks]], [[taskCompleted]] |SEEALSO=
| [[registerTask]], [[unregisterTask]], [[sendTask]], [[createTask]], [[currentTasks]], [[taskCompleted]]


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  

Revision as of 01:25, 18 January 2021

Hover & click on the images for description

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

See also:
registerTaskunregisterTasksendTaskcreateTaskcurrentTaskstaskCompleted

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

Notes

Bottom Section