GetZ

Returns Z position for object ObjID

Pascal Syntax:

function GetZ(ObjID : Cardinal) : Byte;

Pascal Example:

procedure DropRuda;
var MaxMyWght : Word;
begin
  MaxMyWght:= MyWight + 30;   
  if MaxMyWght < Weight then    
  begin                  
    UseObject(Backpack); 
    wait(350);          
    if FindTypeEx($19B9,$0000 ,Backpack,false) > 0 then
    repeat
      rudapack:=FindTypeEx($19B9,$0000 ,Backpack,false);
      wait (100);
      Drop(rudapack, 10, GetX(self),GetY(self),GetZ(self));
      wait(350);
    until Weight < MaxMyWght
  end;
end;

Python Syntax:

def GetZ(ObjID): --> ubyte