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

HatLayer

Returns layer number 0x06 - Hat(Helmets,etc)

Pascal

function HatLayer():Byte

Python

HatLayer()

Example 1:

if ObjAtLayer(HatLayer) > 0 then 
  AddToSystemJournal('Skirt ID:' + IntToStr(ObjAtLayer(HatLayer)));

Example 2:

{If there is something on a layer, then remove}
if ObjAtLayer(HatLayer) <> 0 then
  begin
    unequip(HatLayer);
    wait(1000);
  end;