FindItem
Returns the ID of the last object found by FindType, FindTypeEx, or FindTypesArrayEx.
Returns 0 if no objects were found or the character is disconnected.
This is the same value returned by the search methods themselves.
Возвращает ID последнего объекта, найденного через FindType, FindTypeEx или FindTypesArrayEx.
Возвращает 0, если ничего не найдено или персонаж не подключён.
Совпадает со значением, возвращаемым самими методами поиска.
function FindItem: Cardinal;
def FindItem() -> int: ...
begin
if FindTypeEx($0E76, $FFFF, Ground, False) > 0 then
UseObject(FindItem);
end.
if FindTypeEx(0x0E76, 0xFFFF, Ground(), False) > 0:
UseObject(FindItem())