Auto-translated
There is no trigger that starts the function.
It should be something like this:
function kingblok
while 1, GetObjectiveState("sec2") == OBJECTIVE_COMPLETED do
sleep(5);
SetRegionBlocked("block", nil, -1);
end;
end;
startThread(kingblok);