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

PredictedX

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

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

Pascal

function PredictedX: Word;

Python

def PredictedX() -> int: ...

Pascal Example

begin
  AddToSystemJournal('Current X: ' + IntToStr(GetX(Self)) +
    ', Predicted X: ' + IntToStr(PredictedX));
end.

Python Example

AddToSystemJournal(f'Current X: {GetX(Self())}, Predicted X: {PredictedX()}')

See Also

PredictedY, PredictedZ, PredictedDirection, GetX