W00t mein Name Hr. Lehmann.Quote:
Jeah Hr. Obst wählt wieder den schwersten weg !
x = GetNearestEnemyId();
if(x=0) return 1;
Edit:
Code:#include "GWCAConstants.au3" $cGUI = GUICreate("GWCA") GUIRegisterMsg(0x500, "WndCallback") Func isEnemyOnRadar() Local $ownBubble = 1012, $compRange = $ownBubble * 4 Local $oType = $cbType $cbType = 'int' $nearestId = CmdCB($CA_GetNearestAliveEnemyToAgent, -2) If $nearestId[0] = 0 Then Return 0 $cbType = 'float' $fDistance = CmdCB($CA_GetMyDistanceToAgent, $nearestId[0]) If $cbVar[0] > $compRange Then Return 0 Return 1 EndFunc ;==>isEnemyOnRadar Global $x = 0 While 1 $x = isEnemyOnRadar() Sleep(1000) ConsoleWrite($x & @CRLF) WEnd
Naja danke für die nette Möglichkeit.
Hätte ich eigentlich selbst drauf kommen können.