From Stealth Client

Jump to: navigation, search


ObjAtLayerEx

function ObjAtLayerEx(LayerType:Byte; PlayerID:Cardinal):Cardinal

Returns the Object ID to char PlayerID, located on the guidance layer LayerType

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

Example:

if ObjAtLayerEx(RhandLayer, sparring_partner) = 0 then 
  AddToSystemJournal('Sparring partner has no weapon in hand!');