taskCompleted: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. classification)
m (Some wiki formatting)
 
(85 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


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


|1.00|= Game version
|game2= arma2oa
____________________________________________________________________________________________
|version2= 1.50


| (description) |= Description
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| '''(command)''' |= Syntax
|game4= arma3
|version4= 0.50


|p1= |= PARAMETER1
|gr1= Briefing


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


|p3= |= PARAMETER3
|s1= [[taskCompleted]] task


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


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


|x1= <code>(example)</code>|= EXAMPLE1
|x1= <sqf>
_task = createSimpleTask ["task_1"];
_done = taskCompleted _task;
</sqf>


____________________________________________________________________________________________
|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}}
 
|= 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:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{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