Skip to content
User Avatar
#2695
Auto-translated
OrnsteinDragonslayer
Question: I placed a region near player 2's castle and named it vyhod1. I want to prevent anyone from leaving that region, so I want to block it. I'm writing:
SetRegionBlocked(vyhod1, true, 2);
But it doesn't work, and the hero can still move around. What's wrong?
You're missing quotes around the region name.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4