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

Equip

Equips (wears) the item with ObjID to the specified equipment Layer on the character.

Returns True if the item was successfully equipped, False if the character is disconnected or the operation failed.

The item must be in the backpack or on the ground.

Надевает предмет с ObjID на указанный слой экипировки Layer персонажа.

Возвращает True при успешной экипировке, False, если персонаж не подключён или операция не удалась.

Предмет должен находиться в рюкзаке или на земле.

Pascal

function Equip(Layer: Byte; ObjID: Cardinal): Boolean;

Parameters:

  • Layer — equipment layer (see ConstantsAndEnums). Helper methods that return layer values are documented separately in Layers.
  • ObjID — ID of the item to equip.

Python

def Equip(layer: int, obj: int) -> bool: ...

Pascal Example

begin
  UnEquip(RhandLayer);
  Wait(500);
  Equip(RhandLayer, sword_id);
end.

Python Example

from py_astealth.stealth_enums import Layer

UnEquip(Layer.RhandLayer)
Wait(500)
Equip(Layer.RhandLayer, sword_id)

See Also

Unequip, Equipt, ObjAtLayerEx, ConstantsAndEnums, Layers