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.
function FindAtCoord(X: Word; Y: Word): Cardinal;
Parameters:
- X, Y — world coordinates to search at.
def FindAtCoord(X: int, Y: int) -> int: ...
begin
if FindAtCoord(GetX(Self), GetY(Self)) > 0 then
AddToSystemJournal('Found ' + IntToStr(FindCount) + ' objects at my position');
end.
if FindAtCoord(GetX(Self()), GetY(Self())) > 0:
AddToSystemJournal(f'Found {FindCount()} objects at my position')