Mind the spelling of the TaskState parameter string "CANCELED". The parameter will not work with the TaskState correctly spelled "CANCELLED".
Description
Set a task's state.
Note
See Arma 3: Task Framework for more information.
Syntax
[taskName, taskState, showHint] call BIS_fnc_taskSetState
Parameters:
taskName: StringtaskState: String - can be:- "CREATED"
- "ASSIGNED"
- "SUCCEEDED"
- "FAILED"
- "CANCELED"
showHint: Boolean - (Optional, default true) true to show a hint
Returns: Boolean
Examples
Example 1
["BIS_task_01","CANCELED"] call BIS_fnc_taskSetState;