GetMultiPartsAtPosition
Returns all parts for present position inside multi with position X Y. That can be a a position inside the boat, simple house or custom house.
If no multi found, or uo data files doesn’t loaded, or char disconnected - returns empty array.
Pascal Syntax:
function GetMultiPartsAtPosition(X : Word; Y : Word) : TMultiParts;
TMultiPart = record
Graphic : Word;
X : Word;
Y : Word;
Z : ShortInt;
Flag : Cardinal;
end;
Pascal Example:
var i : Integer;
{$IFDEF DWSCRIPT}
mm : TArray<TMultiPart>;
{$ENDIF}
kk : TMultiParts;
begin
{$IFDEF DWSCRIPT}
kk := GetMultiAllParts(1073981199);
AddToSystemJournal(kk); //be careful with big houses!
mm := GetMultiPartsAtPosition(GetX(Self), GetY(Self));
AddToSystemJournal(mm);
{$ELSE}
kk := GetMultiPartsAtPosition(GetX(Self), GetY(Self));
if Length(kk) > 0 then
for i := 0 to High(kk) do
AddToSystemJournal(IntToStr(kk[i].Graphic));
{$ENDIF}
end.
Python Syntax:
def GetMultiPartsAtPosition(X, Y): --> dict # method will be available in stealth 10.3.7