Skip to content
User Avatar
#2240
Auto-translated
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?
Всё, что сейчас происходит во мне, тоже является частью Вселенной. (с) Иванов Александр.
Цикл кампаний "Дыхание Смерти" из трёшки в четвёртом исполнении
Учебная карта
Астралия
За Королеву!
Подземелья и Дьяволы
Отголоски войны
Освобождение