{"name":"BIS_fnc_taskSetState","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","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","locality":{"argument":"global","effect":"global"},"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","params":[{"name":"taskName","type":"String","type_expr":"String"},{"name":"taskState","type":"String","description":"can be:\n\n- \"CREATED\"\n- \"ASSIGNED\"\n- \"SUCCEEDED\"\n- \"FAILED\"\n- \"CANCELED\"","type_expr":"String"},{"name":"showHint","type":"Boolean","optional":true,"default":"true","description":"true to show a hint","type_expr":"Boolean","text":"showHint: Boolean - (Optional, default true) true to show a hint"}],"returns":{"type":"Boolean","type_expr":"Boolean"}}],"examples":[{"code":["[\"BIS_task_01\",\"CANCELED\"] call BIS_fnc_taskSetState;"]}],"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\"."}]}