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

FindAtCoord

Searches for all objects at the specified world coordinates (X, Y) and returns the ID of the last found object.

Returns 0 if no objects were found or the character is disconnected.

After a successful search, FindCount, FindItem, and GetFindedList are updated.

Ищет все объекты в указанных мировых координатах (X, Y) и возвращает ID последнего найденного объекта.

Возвращает 0, если ничего не найдено или персонаж не подключён.

После успешного поиска обновляются FindCount, FindItem и GetFindedList.

Pascal

function FindAtCoord(X: Word; Y: Word): Cardinal;

Parameters:

  • X, Y — world coordinates to search at.

Python

def FindAtCoord(X: int, Y: int) -> int: ...

Pascal Example

begin
  if FindAtCoord(GetX(Self), GetY(Self)) > 0 then
    AddToSystemJournal('Found ' + IntToStr(FindCount) + ' objects at my position');
end.

Python Example

if FindAtCoord(GetX(Self()), GetY(Self())) > 0:
    AddToSystemJournal(f'Found {FindCount()} objects at my position')

See Also

FindTypeEx, FindItem, FindCount