unregisterTask: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game name" to "|Game name=") |
Killzone Kid (talk | contribs) (see also) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Unregisters a task type from given agent. The task type is the name given in <tt>CfgTasks</tt> classes in <tt>name</tt> property. Also available from [[registeredTasks]] array. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| teamMember '''unregisterTask''' name |SYNTAX= | | teamMember '''unregisterTask''' name |SYNTAX= | ||
|p1= teamMember: [[Team Member]] |PARAMETER1= | |p1= teamMember: [[Team Member]] - [[teamMember]] [[agent]] |PARAMETER1= | ||
|p2= name: [[String]] |PARAMETER2= | |p2= name: [[String]] - name of the task |PARAMETER2= | ||
|p3= |PARAMETER3= | |p3= |PARAMETER3= | ||
| [[Boolean]] |RETURNVALUE= | | [[Boolean]] - [[true]] on success |RETURNVALUE= | ||
|x1= <code> | |x1= <code>[[teamMember]] _agent [[unregisterTask]] ([[registeredTasks]] [[select]] 0);</code>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[ | | [[registeredTasks]],[[registeredTasks]], [[sendTask]], [[createTask]], [[currentTasks]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
Line 44: | Line 44: | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
Revision as of 19:56, 15 September 2019
Description
- Description:
- Unregisters a task type from given agent. The task type is the name given in CfgTasks classes in name property. Also available from registeredTasks array.
- Groups:
- Uncategorised
Syntax
- Syntax:
- teamMember unregisterTask name
- Parameters:
- teamMember: Team Member - teamMember agent
- name: String - name of the task
- Return Value:
- Boolean - true on success
Examples
- Example 1:
teamMember _agent unregisterTask (registeredTasks select 0);
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