From Stealth Client

Jump to: navigation, search


ObjAtLayer

function ObjAtLayer(LayerType:Byte):Cardinal

Returns Object ID located on your Char to specify the layer LayerType

If there is no connection to the UO server, or in the bed wearing nothing - returns 0.

Example:

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