ClientTargetResponsePresent
Check, if object\tile is already targetted, or not yet (target request sent by ClientRequestObjectTarget or ClientRequestTileTarget)
Pascal
function ClientTargetResponsePresent : Boolean;
Python
def ClientTargetResponsePresent() -> Boolean
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;