Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

PredictedY

Returns the predicted Y coordinate of the character based on the current movement trajectory.

Возвращает предсказанную координату Y персонажа на основе текущей траектории движения.

Pascal

function PredictedY: Word;

Python

def PredictedY() -> int: ...

Pascal Example

begin
  AddToSystemJournal('Current Y: ' + IntToStr(GetY(Self)) +
    ', Predicted Y: ' + IntToStr(PredictedY));
end.

Python Example

AddToSystemJournal(f'Current Y: {GetY(Self())}, Predicted Y: {PredictedY()}')

See Also

PredictedX, PredictedZ, PredictedDirection, GetY