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

GetMultiAllParts

Returns all parts (components) of the multi-object (house, boat) with MultiID.

Returns an empty array if the multi is not found, UO data files are not loaded, or the character is disconnected.

Возвращает все части (компоненты) мульти-объекта (дом, лодка) с MultiID.

Возвращает пустой массив, если мульти-объект не найден, файлы UO Data не загружены, или персонаж не подключён.

Pascal

function GetMultiAllParts(MultiID: Cardinal): TMultiParts;

Type definition:

type
  TMultiPart = packed record
    Graphic: Word;
    X: Word;
    Y: Word;
    Z: ShortInt;
    Flag: Cardinal;
  end;

  TMultiParts = array of TMultiPart;

Python

def GetMultiAllParts(MultiID: int) -> list[MultiPart]: ...

Pascal Example

var
  Parts: TMultiParts;
begin
  Parts := GetMultiAllParts($00004000);
  AddToSystemJournal('Parts count: ' + IntToStr(Length(Parts)));
end.

Python Example

parts = GetMultiAllParts(0x00004000)
AddToSystemJournal(f'Parts count: {len(parts)}')

See Also

GetMultiPartsAtPosition, GetMultis, IsHouse