GetY
Returns the Y coordinate of the object or mobile with the given ObjID.
ObjID — ID of the object or mobile.
Returns 0 if the object does not exist or the character is disconnected.
Возвращает координату Y объекта или мобила с указанным ObjID.
ObjID — ID объекта или мобила.
Возвращает 0, если объект не существует или персонаж не подключён.
function GetY(ObjID: Cardinal): Word;
def GetY(ObjID: int) -> int: ...
var
TargetX, TargetY: Word;
begin
TargetX := GetX(LastTarget);
TargetY := GetY(LastTarget);
AddToSystemJournal('Last target at: ' + IntToStr(TargetX) + ', ' + IntToStr(TargetY));
end.
target_x = GetX(LastTarget())
target_y = GetY(LastTarget())
AddToSystemJournal(f'Last target at: {target_x}, {target_y}')