registeredTasks: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \{\{GameCategory *\| *arma2 *\| *(New )?Scripting Commands\}\}" to "")
m (Text replacement - "\|gr1=([^ ]+) \|gr2=([^ ]+) \|([0-9]\.[0-9]{2}) " to "|$3 |gr1= $1 |gr2= $1 ")
Line 3: Line 3:
| arma2
| arma2


|gr1= Briefing
|1.00


|gr2= Teams
|gr1= Briefing


|1.00
|gr2=  Briefing


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

Revision as of 21:37, 13 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
BriefingBriefing

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