registeredTasks: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|gr1=([^ ]+) \|gr2=([^ ]+) \|([0-9]\.[0-9]{2}) " to "|$3 |gr1= $1 |gr2= $1 ")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma2
|game1= arma2
|version1= 1.00


|1.00
|game2= arma2oa
|version2= 1.50
 
|game3= tkoh
|version3= 1.00
 
|game4= arma3
|version4= 0.50


|gr1=  Briefing
|gr1=  Briefing


|gr2=  Briefing
|gr2=  Teams


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


|s1= '''registeredTasks''' teamMember
|s1= [[registeredTasks]] teamMember


|p1= teamMember: [[Team Member]] - [[teamMember]] [[agent]]
|p1= teamMember: [[Team Member]] - [[teamMember]] [[agent]]
Line 20: Line 28:


|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; {{cc|shows ["Animal Main Task"]</tt> in {{arma3}}}}</code>
Hint shows <tt>["Animal Main Task"]</tt> in Arma 3.


|seealso= [[registerTask]], [[unregisterTask]], [[sendTask]], [[createTask]], [[currentTasks]], [[taskCompleted]]
|seealso= [[registerTask]], [[unregisterTask]], [[sendTask]], [[createTask]], [[currentTasks]], [[taskCompleted]]
}}
}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 21:44, 13 June 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; // 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