I don't know about the units, but I think it should only prevent movement.
Check the manual.
Added 1 minute ago
Can you help?
I need to reset the script after the hero completes the task.
The script is as follows: SetRegionBlocked("Region", true, 1);
Oh, sorry, but I can't help, I don't know that script yet, I'm just getting started.