LastContainer
Returns the serial (ID) of the last container that was opened or interacted with.
Returns 0 if no container has been opened.
Возвращает серийный номер (ID) последнего контейнера, который был открыт или с которым взаимодействовали.
Возвращает 0, если ни один контейнер не был открыт.
function LastContainer: Cardinal;
def LastContainer() -> int: ...
begin
UseObject(Backpack);
Wait(1000);
AddToSystemJournal('Last container: $' + IntToHex(LastContainer, 8));
end.
UseObject(Backpack())
Wait(1000)
AddToSystemJournal(f'Last container: ${LastContainer():08X}')