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

PredictedZ

Returns the predicted Z coordinate (height) of the character based on the current movement trajectory.

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

Pascal

function PredictedZ: ShortInt;

Python

def PredictedZ() -> int: ...

Pascal Example

begin
  AddToSystemJournal('Current Z: ' + IntToStr(GetZ(Self)) +
    ', Predicted Z: ' + IntToStr(PredictedZ));
end.

Python Example

AddToSystemJournal(f'Current Z: {GetZ(Self())}, Predicted Z: {PredictedZ()}')

See Also

PredictedX, PredictedY, PredictedDirection, GetZ