Sprobuj tego Skrypt rusza się co 30s gdy postać stoi w miejscu ;]
Cytuj:
Const
SecondsBetweenChecks = 30
while not terminated do
begin
UpdateWorld;
X := Self.X;
Y := Self.Y;
Z := Self.Z;
Sleep(SecondsBetweenChecks*1000);
UpdateWorld;
if (X = Self.X) and (Y = Self.Y) and (Z = Self.Z) then
begin
Self.MoveUp;
sleep(500);
Self.MoveLeft;
Sleep(500);
Self.MoveRight;
Sleep(500);
Self.MoveDown;
end;
end;