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.
Возвращает предсказанное направление персонажа на основе текущей траектории движения.
Предсказанные координаты рассчитываются движком перемещения и показывают, где персонаж окажется после обработки ожидающих шагов движения.
function PredictedDirection: Byte;
def PredictedDirection() -> int: ...
begin
AddToSystemJournal('Predicted direction: ' + IntToStr(PredictedDirection));
AddToSystemJournal('Predicted position: ' +
IntToStr(PredictedX) + ',' + IntToStr(PredictedY) + ',' + IntToStr(PredictedZ));
end.
AddToSystemJournal(f'Predicted direction: {PredictedDirection()}')
AddToSystemJournal(f'Predicted position: {PredictedX()},{PredictedY()},{PredictedZ()}')