Skip to content
User Avatar
#560
Auto-translated
What is SetStandState actually used for?

Added 1 hour 51 minutes ago
Oligarch
What is SetStandState actually used for?
Okay, here's the deal.
h=1;
while h==1 do
x, y = GetObjectPosition("Hero2");
MoveHeroRealTime("Hero3", x+1, y, -1);
end;
end;
When I write it this way, the game freezes completely when launched.

h=1;
function Moov()
while h==1 do
x, y = GetObjectPosition("Hero2");
MoveHeroRealTime("Hero3", x+1, y, -1);
end;
end;
When I attach it to a function, there are no errors, but nothing happens. h=1;

function Moov()
while h==1 do
x, y = GetObjectPosition("Hero2");
MoveHeroRealTime("Hero3", x+1, y, -1);
end;
end;
Trigger (REGION_ENTER_AND_STOP_TRIGGGER, "reg", "Moov";) <---this is not a smiley, it's a closing parenthesis))
When entering the region "reg", the game freezes again. Could it be because of the "while" loop?
Мои карты:
Town
Готовится:Чума (40%), Сосиска(42%), Война Грааля

Statistics

Welcome our newest member: leyu