taskCompleted: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (changed example)
m (Reverted edits by R3vo (talk) to last revision by killzone_kid)
Tag: Rollback
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma2 |= Game name
| arma2 |Game name=


|1.00|= Game version
|1.00|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


| '''taskCompleted''' task |= Syntax
| '''taskCompleted''' task |SYNTAX=


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


|p2= |= PARAMETER2
|p2= |PARAMETER2=  


|p3= |= PARAMETER3
|p3= |PARAMETER3=  


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




|x1= <code>_task = [[createSimpleTask]] ["task_1"];
|x1= <code>_done = [[taskCompleted]] _someTask;</code>|EXAMPLE1=  
_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]],[[Arma 3 Tasks 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]],[[Arma 3 Tasks Overhaul]] |SEEALSO=  


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}

Revision as of 15:39, 17 September 2019

Hover & click on the images for description

Description

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

Syntax

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

Examples

Example 1:
_done = taskCompleted _someTask;

Additional Information

See also:
BIS fnc deleteTaskBIS fnc setTaskBIS fnc setTaskLocalBIS fnc sharedObjectivesBIS fnc taskAlwaysVisibleBIS fnc taskCompletedBIS fnc taskCreateBIS fnc taskCurrentBIS fnc taskDescriptionBIS fnc taskDestinationBIS fnc taskExistsBIS fnc taskHintBIS fnc taskParentBIS fnc taskRealBIS fnc taskSetAlwaysVisibleBIS fnc taskSetCurrentBIS fnc taskSetDescriptionBIS fnc taskSetDestinationBIS fnc taskSetStateBIS fnc taskSetTypeBIS fnc taskStateBIS fnc tasksUnitBIS fnc taskTypeBIS fnc taskTypeIconBIS fnc taskVarArma 3 Task FrameworkArma 3 Tasks 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

Notes

Bottom Section