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

FindItem

Returns the last object found using the function by using the functions FindType or FindTypeEx

If no objects found, or char disconnected - returns 0.

NB: Including in result all items in Items stacks.

Pascal

function FindItem():Cardinal

Python

def FindItem(): -> uint

Example Pascal

if FindTypeEx(bottle_type,bottle_color,Ground,false) > 0 then
begin
  UseObject(FindItem);
end;