Skip to content

Current questions and answers regarding the map editor.

User Avatar
#3758
Auto-translated
city teleportation

I've encountered this problem.

According to the map's storyline, I need Nicholas to turn human city ruins into a Necropolis when he approaches them.

I looked into the map where Zephyr teleports his city, and I used the MakeTownMovable function; everything works fine.

MakeTownMovable("Morton");

But when you teleport a city from a dungeon (which is very desirable), it teleports along with a piece of the landscape, which then floats in the air.
RemoveObject('Morton_ruins');
SetObjectPosition('Morton', 48, 45, 0);

Is there any way to prevent this?

--
And another question:
On the map, can you force creatures to play their animations?
PlayObjectAnimation('Cleric','happy',ONESHOT);
Can you do the same with heroes who are on the map?

If I do:
PlayObjectAnimation('Nikolay','happy',ONESHOT);
it doesn't work, even though I've added all possible animations to his advanced animations.

And most importantly, I remember that in the Warlords Campaign, at the end, Orlando roars and then runs to his city, so it's definitely possible. Also, when Warlocks perform a ritual, they also move right on the map.
Мои карты

Возрождённый v 1.5 (обновление от 25/09/2016) :smile24:

готовится продолжение.

Великая Пустыня ( 25%) - про Маркела
Тьма над Иролланом (0%) - про Николаса

Мои моды (скорректированы мод на чумных энтов и циклопов зомби)