["task0", "SUCCEEDED"] call BIS_fnc_taskSetState;   Put that line below  }];  in the above script. May want to add a sleep. sleep 5; //pauses before succeeding the task. ["task0", "SUCCEEDED"] call BIS_fnc_taskSetState;   Hope I'm understanding you right.