BpackLayer

Returns layer number 0x15 - Character’s Bag (Backpack).

The result of the ObjAtLayer(BpackLayer) should be similar to Backpack

Pascal

function BpackLayer():Byte

Python

BpackLayer()

Example:

if ObjAtLayer(BpackLayer) > 0 then 
  AddToSystemJournal('Backpack ID:' + IntToStr(ObjAtLayer(BpackLayer)));