Auto-translated
Okay, I’ll need to test it. However, this method is still unreliable because it will be impossible to track units where no one dies.
Нет войне.
New here? I'm Roha — want a quick tour?
Okay, I'll need to test it. Although, the method still seems unreliable because it will be impossible to track units where no one dies.
function HeroMoveThread(hero, x, y, f)
while 1 do
while not IsPlayerCurrent(GetObjectOwner(hero)) do
sleep()
end
local cx, cy, cf = GetObjectPosition(hero)
if cx == x and cy == y and cf == f then
break
end
MoveHero(hero, x, y, f)
sleep()
end
end
startThread(HeroMoveThread, hero_name, destination_coordinates)
If MoveHero is replaced with MoveHeroRealTime, obstacles will be ignored, but the ignoring will be complete, i.e., if the obstacle is, for example, another hero, there will be no battle with him (although I think this can be fixed, but it will be more complicated).
EnableDynamicBattleMode in combat. It can't be disabled, though.
only in the function where it is called. It seems like you can't disable it again during the battle itself.
in combat, I meant in the combat script. I don't think it's possible to affect the speed.
Evan, that's quite complex. Do you recall if there are any examples of a similar function in the original game?
Hello everyone. Is it possible to increase the size of a creature in the editor? So that the creature would be larger.