Skip to content

Current questions and answers regarding the map editor.

User Avatar
#4879
Auto-translated
But instead of waiting for two seconds (aren't those seconds?),
sleep isn't measured in seconds; by experimenting a bit, you'll learn to choose the right values for it. It seems like the increment is 0.2 seconds, but I don't remember exactly.
function goblin()
PlayObjectAnimation("SlaveGob_1", "attack00", IDLE);
sleep (2)
end
startThread(goblin)
to make it happen infinitely, you also need an infinite loop, for example:
function goblin()
while (true) do
PlayObjectAnimation("SlaveGob_1", "attack00", IDLE);
sleep (2)
end
end
startThread(goblin)
РПГ-сценарий для HoMM5: Путь героя
ЧаВо по созданию карт для HoMM5: ЧаВо