IsContainer
Returns True if the specified object is a container, False otherwise.
ObjID — ID of the object to check.
Returns False if the object does not exist or the character is disconnected.
Возвращает True, если указанный объект является контейнером, иначе False.
ObjID — ID объекта для проверки.
Возвращает False, если объект не существует или персонаж не подключён.
function IsContainer(ObjID: Cardinal): Boolean;
def IsContainer(ObjID: int) -> bool: ...
begin
if FindType($0E76, Ground) > 0 then
begin
if IsContainer(FindItem) then
AddToSystemJournal('Found a container on the ground')
else
AddToSystemJournal('Found item is not a container');
end;
end.
if FindType(0x0E76, Ground()) > 0:
if IsContainer(FindItem()):
AddToSystemJournal('Found a container on the ground')
else:
AddToSystemJournal('Found item is not a container')