I need a script that will cause the mission to fail after the hero dies. Thanks in advance.
When editing through the map editor, it crashes.
function alive()
while IsHeroAlive("script_hero_name") do
sleep(10)
end
Loose()
end
startThread(alive)
Added 1 minute ago
If the editor crashes, try editing the script using Notepad.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4