taskCompleted: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{HashLinkArma 3: Task Framework" to "{{HashLink|Arma 3: Task Framework")
m (Some wiki formatting)
 
(63 intermediate revisions by 2 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
____________________________________________________________________________________________


| Return if task is completed. (state Succeeded, Failed or Canceled) |DESCRIPTION=
|descr= Return if task is completed. (state Succeeded, Failed or Canceled)
____________________________________________________________________________________________


| '''taskCompleted''' task |SYNTAX=
|s1= [[taskCompleted]] task


|p1= task: [[Task]] |PARAMETER1=
|p1= task: [[Task]]


|p2= |PARAMETER2=  
|r1= [[Boolean]] - [[true]] if task has been Succeeded, Failed or Canceled


|p3= |PARAMETER3=  
|x1= <sqf>
_task = createSimpleTask ["task_1"];
_done = taskCompleted _task;
</sqf>


| [[Boolean]] - [[true]] if task has been Succeeded, Failed or Canceled |RETURNVALUE=
|seealso= [[BIS_fnc_deleteTask]] [[BIS_fnc_setTask]] [[BIS_fnc_setTaskLocal]] [[BIS_fnc_sharedObjectives]] [[BIS_fnc_taskAlwaysVisible]] [[BIS_fnc_taskCompleted]] [[BIS_fnc_taskCreate]] [[BIS_fnc_taskCurrent]] [[BIS_fnc_taskDescription]] [[BIS_fnc_taskDestination]] [[BIS_fnc_taskExists]] [[BIS_fnc_taskHint]] [[BIS_fnc_taskParent]] [[BIS_fnc_taskReal]] [[BIS_fnc_taskSetAlwaysVisible]] [[BIS_fnc_taskSetCurrent]] [[BIS_fnc_taskSetDescription]] [[BIS_fnc_taskSetDestination]] [[BIS_fnc_taskSetState]] [[BIS_fnc_taskSetType]] [[BIS_fnc_taskState]] [[BIS_fnc_tasksUnit]] [[BIS_fnc_taskType]] [[BIS_fnc_taskTypeIcon]] [[BIS_fnc_taskVar]] [[Arma 3: Task Framework]] {{Link|Arma 3: Task Framework#Task Overhaul}}
 
 
 
|x1= <code>_task = [[createSimpleTask]] ["task_1"]
_done = [[taskCompleted]] _task;</code>|EXAMPLE1=
____________________________________________________________________________________________
 
| [[BIS fnc deleteTask]],[[BIS fnc setTask]],[[BIS fnc setTaskLocal]],[[BIS fnc sharedObjectives]],[[BIS fnc taskAlwaysVisible]],[[BIS fnc taskCompleted]],[[BIS fnc taskCreate]],[[BIS fnc taskCurrent]],[[BIS fnc taskDescription]],[[BIS fnc taskDestination]],[[BIS fnc taskExists]],[[BIS fnc taskHint]],[[BIS fnc taskParent]],[[BIS fnc taskReal]],[[BIS fnc taskSetAlwaysVisible]],[[BIS fnc taskSetCurrent]],[[BIS fnc taskSetDescription]],[[BIS fnc taskSetDestination]],[[BIS fnc taskSetState]],[[BIS fnc taskSetType]],[[BIS fnc taskState]],[[BIS fnc tasksUnit]],[[BIS fnc taskType]],[[BIS fnc taskTypeIcon]],[[BIS fnc taskVar]],[[Arma 3: Task Framework]],{{HashLink|Arma 3: Task Framework#Task Overhaul}} |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 12:57, 12 March 2024

Hover & click on the images for description

Description

Description:
Return if task is completed. (state Succeeded, Failed or Canceled)
Groups:
Briefing

Syntax

Syntax:
taskCompleted task
Parameters:
task: Task
Return Value:
Boolean - true if task has been Succeeded, Failed or Canceled

Examples

Example 1:
_task = createSimpleTask ["task_1"]; _done = taskCompleted _task;

Additional Information

See also:
BIS_fnc_deleteTask BIS_fnc_setTask BIS_fnc_setTaskLocal BIS_fnc_sharedObjectives BIS_fnc_taskAlwaysVisible BIS_fnc_taskCompleted BIS_fnc_taskCreate BIS_fnc_taskCurrent BIS_fnc_taskDescription BIS_fnc_taskDestination BIS_fnc_taskExists BIS_fnc_taskHint BIS_fnc_taskParent BIS_fnc_taskReal BIS_fnc_taskSetAlwaysVisible BIS_fnc_taskSetCurrent BIS_fnc_taskSetDescription BIS_fnc_taskSetDestination BIS_fnc_taskSetState BIS_fnc_taskSetType BIS_fnc_taskState BIS_fnc_tasksUnit BIS_fnc_taskType BIS_fnc_taskTypeIcon BIS_fnc_taskVar Arma 3: Task Framework Arma 3: Task Framework - Task Overhaul

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