registeredTasks: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
Line 12: Line 12:
| '''registeredTasks''' member |= Syntax
| '''registeredTasks''' member |= Syntax


|p1= member: [[Team Member]] |= PARAMETER1
|p1= member: [[Team Member]] |PARAMETER1=  


|p2= |= PARAMETER2
|p2= |PARAMETER2=  


|p3= |= PARAMETER3
|p3= |PARAMETER3=  


|[[Array]] of [[String]]s |= RETURNVALUE
|[[Array]] of [[String]]s |RETURNVALUE=  




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


|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.|EXAMPLE2=  


____________________________________________________________________________________________
____________________________________________________________________________________________


| [[registerTask]] |= SEEALSO
| [[registerTask]] |SEEALSO=  


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}

Revision as of 10:36, 7 April 2019

Hover & click on the images for description

Description

Description:
List all registered task types.
Groups:
Uncategorised

Syntax

Syntax:
registeredTasks member
Parameters:
member: Team Member
Return Value:
Array of Strings

Examples

Example 1:
tasklist = registeredTasks teamMember player;
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:
registerTask

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