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

Equipt

Wear item with type ObjType to the specified layer Layer.

if wearing sucessfull - return True.

If char disconnected, or the movement of the object from hand to the backpack failed - will return False.

Pascal

function Equipt(Layer : Byte;ObjType : Word) : Boolean;

Python

def Equipt(Layer, ObjType): -> bool

Example Pascal

if (gettype(ObjAtLayer(RhandLayer)) <> gettype(tweapon)) then 
  begin 
    UnEquip(RHandLayer); 
    wait(500); 
    Equipt(RhandLayer, tweapon); 
  end;