taskCompleted: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= ([^ ]+)\]\], *\[\[" to "|seealso= $1]] [[")
m (Some wiki formatting)
 
(22 intermediate revisions by the same user not shown)
Line 23: Line 23:
|r1= [[Boolean]] - [[true]] if task has been Succeeded, Failed or Canceled
|r1= [[Boolean]] - [[true]] if task has been Succeeded, Failed or Canceled


|x1= <sqf>_task = createSimpleTask ["task_1"];
|x1= <sqf>
_done = taskCompleted _task;</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]],{{HashLink|Arma 3: Task Framework#Task Overhaul}}
|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}}
}}
}}

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