Skip to content

Current questions and answers regarding the map editor.

User Avatar
#1769
Auto-translated
zehir12
Thank you very much, I'm trying it now.

Added 5 minutes later
function maxF()
if IsObjectExists('max')
then
else
SetObjectOwner('Bar',PLAYER_1);
Trigger(OBJECT_TOUCH_TRIGGER,'max',nil)
end;
end;
Trigger(OBJECT_TOUCH_TRIGGER,'max','maxF')
Did I write it correctly?
You need to attach it to a battle trigger, not an object touch trigger. Possibly with a delay.
Or just put it in a While loop...
Otherwise, it turns out that the object is touched, but it no longer exists.
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...