Connection ErrorBad RequestThis page went staleSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
This page went stale
Your security token was rejected, usually because the page sat open too long or you signed in elsewhere. Nothing was saved. Reload the page and try again.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
It is necessary to block a region (passage) for a specific computer-controlled hero.
Using SetRegionBlocked with a condition did not work – the computer-controlled hero still passes through the block.
Besides, this all works with triggers that are activated by both the player and the computer-controlled hero (which looks terrible – empty stops).
I did the following:
```
SetRegionAutoObjectEnable ("kendal00", REGION_AUTOACTION_ON_ENTER, -1, -1, "Deleb", "kendal0", 0);
SetRegionAutoObjectEnable ("kendal00", REGION_AUTOACTION_ON_EXIT, -1, -1, "Deleb", "kendal0", 1);
```
It worked.
But a problem arose: the computer-controlled hero now constantly tries to pass through the block (which is understandable, because after the hero exits the region, the passage becomes "open" again).
Is there a better way to block a passage for a specific hero?