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

PredictedDirection

Returns the predicted direction of the character based on the current movement trajectory.

The predicted coordinates are calculated by the mover engine and represent where the character is expected to be after pending movement steps are processed.

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

Предсказанные координаты рассчитываются движком перемещения и показывают, где персонаж окажется после обработки ожидающих шагов движения.

Pascal

function PredictedDirection: Byte;

Python

def PredictedDirection() -> int: ...

Pascal Example

begin
  AddToSystemJournal('Predicted direction: ' + IntToStr(PredictedDirection));
  AddToSystemJournal('Predicted position: ' +
    IntToStr(PredictedX) + ',' + IntToStr(PredictedY) + ',' + IntToStr(PredictedZ));
end.

Python Example

AddToSystemJournal(f'Predicted direction: {PredictedDirection()}')
AddToSystemJournal(f'Predicted position: {PredictedX()},{PredictedY()},{PredictedZ()}')

See Also

PredictedX, PredictedY, PredictedZ, GetDirection