Posts from The script is not working.
Auto-translated
2. The second parameter of the function is a boolean; you need to pass nil or not nil. The keyword "on" does not exist.
1. You are blocking the region using a trigger that activates when entering the region, meaning that at the moment of blocking, the hero will already be inside the region and will be able to pass through it. You need to write the blocking condition outside, without any conditions.
2. The second parameter of the function is boolean; you need to pass nil or not nil. The keyword "on" does not exist.
Thank you very much, it helped.
There was simply not enough information in the documentation attached to the game files.