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

EquipItems

Equips multiple items at once from the provided list of item IDs. Each item is automatically placed on its appropriate layer based on its type.

Returns True if all items were equipped successfully, False otherwise.

Надевает несколько предметов сразу из переданного списка ID. Каждый предмет автоматически размещается на соответствующем слое на основе его типа.

Возвращает True, если все предметы были успешно экипированы, False в противном случае.

DWS

function EquipItems(Items: TArray<Cardinal>): Boolean;

Pascal Script

function EquipItems(Items: TCardinalDynArray): Boolean;

Parameters:

  • Items — array of item IDs to equip.

Python

def EquipItems(Items: list[int]) -> bool: ...

Pascal Example

var
  ItemList: TArray<Cardinal>;
begin
  SetLength(ItemList, 3);
  ItemList[0] := helm_id;
  ItemList[1] := armor_id;
  ItemList[2] := shield_id;
  if EquipItems(ItemList) then
    AddToSystemJournal('All items equipped');
end.

Python Example

items = [helm_id, armor_id, shield_id]
if EquipItems(items):
    AddToSystemJournal('All items equipped')

See Also

Equip, UnequipItems