removeSimpleTask: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "\{\{Feature *\| *Informative *\| ([^↵]+) *\}\}" to "{{Feature|informative|$1}}")
 
(39 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma2 |Game name=
|game1= arma2
|version1= 1.00


|gr1= Briefing |GROUP1=
|game2= arma2oa
|version2= 1.50


|game3= tkoh
|version3= 1.00


|game4= arma3
|version4= 0.50


|1.00|Game version=
|gr1= Briefing
____________________________________________________________________________________________


| Remove a simple task from the list of simple tasks. |DESCRIPTION=
|descr= Remove a simple task from the list of simple tasks.
____________________________________________________________________________________________
{{Feature|informative|If the [[Task]] to be removed is a child to some parent task and at the same time the parent to some child task, the child of this task gets orphaned and is listed in the root of Tasks tree (Tasks menu), retaining tree structure of its children.}}


| person '''removeSimpleTask''' task |SYNTAX=
|s1= person [[removeSimpleTask]] task


|p1= person: [[Object]] |PARAMETER1=
|p1= person: [[Object]]


|p2= task: [[Task]] |PARAMETER2=
|p2= task: [[Task]]


|p3= |PARAMETER3=  
|r1= [[Nothing]]


| Nothing |RETURNVALUE=  
|x1= <sqf>player removeSimpleTask _tskKillSpongebob;</sqf>


 
|seealso= [[Tasks]] [[createSimpleTask]] [[setSimpleTaskDescription]] [[setSimpleTaskDestination]] [[setTaskState]] [[setTaskResult]] [[taskState]]
|x1= <code>[[player]] [[removeSimpleTask]] _tskKillSpongebob</code>|EXAMPLE1=
 
____________________________________________________________________________________________
 
| [[Tasks]], [[createSimpleTask]], [[setSimpleTaskDescription]], [[setSimpleTaskDestination]], [[setTaskState]], [[setTaskResult]], [[taskState]] |SEEALSO=
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Briefing|{{uc:{{PAGENAME}}}}]]

Latest revision as of 18:11, 15 March 2024

Hover & click on the images for description

Description

Description:
Remove a simple task from the list of simple tasks.
If the Task to be removed is a child to some parent task and at the same time the parent to some child task, the child of this task gets orphaned and is listed in the root of Tasks tree (Tasks menu), retaining tree structure of its children.
Groups:
Briefing

Syntax

Syntax:
person removeSimpleTask task
Parameters:
person: Object
task: Task
Return Value:
Nothing

Examples

Example 1:
player removeSimpleTask _tskKillSpongebob;

Additional Information

See also:
Tasks createSimpleTask setSimpleTaskDescription setSimpleTaskDestination setTaskState setTaskResult taskState

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