{"name":"taskCompleted","operator":null,"title":"taskCompleted","type":"command","url":"https://community.bistudio.com/wiki/taskCompleted","revid":376412,"updated":"2025-10-11T01:03:52Z","groups":["Briefing"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Return if task is completed. (state Succeeded, Failed or Canceled)","syntaxes":[{"syntax":"taskCompleted task","since":null,"effect":null,"exec":null,"params":[{"name":"task","type":"Task","optional":false,"default":null,"description":null,"types":["Task"],"since":null,"text":"task: Task"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true if task has been Succeeded, Failed or Canceled","text":"Boolean - true if task has been Succeeded, Failed or Canceled"},"form":"unary","operator":null,"left":null,"right":{"text":"task","types":["Task"]}}],"examples":[{"text":"```sqf\n_task = player createSimpleTask [\"task_1\"];\n_done = taskCompleted _task;\n```","code":["_task = player createSimpleTask [\"task_1\"];\n_done = taskCompleted _task;"]}],"multiplayer":null,"problems":null,"aliases":[],"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"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Briefing","Introduced with Arma 2 version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}