registeredTasks: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 27: | Line 27: | ||
|x1= <sqf>tasklist = registeredTasks teamMember _agent;</sqf> | |x1= <sqf>tasklist = registeredTasks teamMember _agent;</sqf> | ||
|x2= < | |x2= <sqf>_rabbit = createAgent ["Rabbit_F", position player,[], 0, "None"]; | ||
hint str registeredTasks teamMember _rabbit; // shows ["Animal Main Task"] | hint str registeredTasks teamMember _rabbit; // shows ["Animal Main Task"] in Arma 3</sqf> | ||
|seealso= [[registerTask]] [[unregisterTask]] [[sendTask]] [[createTask]] [[currentTasks]] [[taskCompleted]] | |seealso= [[registerTask]] [[unregisterTask]] [[sendTask]] [[createTask]] [[currentTasks]] [[taskCompleted]] | ||
}} | }} |
Revision as of 15:58, 13 May 2022
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:
- Example 2:
- _rabbit = createAgent ["Rabbit_F", position player,[], 0, "None"]; hint str registeredTasks teamMember _rabbit; // 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