{"name":"BIS_fnc_taskSetState","operator":null,"title":"BIS fnc taskSetState","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_taskSetState","revid":364616,"updated":"2024-05-22T11:37:48Z","groups":["Tasks"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":"global","effect":"global","server_exec":false},"exec":null,"description":"Set a task's state. \n\n> [!NOTE]\n> See Arma 3: Task Framework for more information.","syntaxes":[{"syntax":"[taskName, taskState, showHint] call BIS_fnc_taskSetState","since":null,"effect":null,"exec":null,"params":[{"name":"taskName","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"taskName: String"},{"name":"taskState","type":"String","optional":false,"default":null,"description":"can be:\n- \"CREATED\"\n- \"ASSIGNED\"\n- \"SUCCEEDED\"\n- \"FAILED\"\n- \"CANCELED\"","types":["String"],"since":null,"text":"taskState: String - can be:\n- \"CREATED\"\n- \"ASSIGNED\"\n- \"SUCCEEDED\"\n- \"FAILED\"\n- \"CANCELED\""},{"name":"showHint","type":"Boolean","optional":true,"default":"true","description":"true to show a hint","types":["Boolean"],"since":null,"text":"showHint: Boolean - (Optional, default true) true to show a hint"}],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"}}],"examples":[{"text":"```sqf\n[\"BIS_task_01\",\"CANCELED\"] call BIS_fnc_taskSetState;\n```","code":["[\"BIS_task_01\",\"CANCELED\"] call BIS_fnc_taskSetState;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Arma 3: Task Framework"],"notes":[{"user":"Whiztler","date":"2024-05-22T11:37:48Z","text":"Mind the spelling of the TaskState parameter string \"CANCELED\". The parameter will not work with the TaskState correctly spelled \"CANCELLED\"."}],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Tasks","Functions","Functions: Global Effect","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}