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

ClientRequestTileTarget

Sending a tile target request to connected Client. This method using only for targettting tiles, not objects.

Result (Targettted tile) can be obtained by ClientTargetResponse method.

Pascal

procedure ClientRequestTileTarget;

Python

ClientRequestTileTarget()

Example Pascal

procedure Fishing;
begin
    ClientPrint('Укажите точку ловли');
    ClientRequestTileTarget;
    WaitForClientTargetResponse(60000);
    if ClientTargetResponsePresent then
    begin
      tx:=ClientTargetResponse.X;
      ty:=ClientTargetResponse.Y;
      tz:=ClientTargetResponse.Z;
      if (tz=0) then tz:=GetZ(self);
      ClientPrint('Выбран тайл X:'+IntToStr(tx)+',Y:'+IntToStr(ty)+',Z:'+IntToStr(tz));
    end;
end;