ok.
visual version
SetVirtualResolution(100,100)
spr1=CreateSprite(0)
SetSpritePositionByOffset(spr1,50,50)
spr2=CreateSprite(0)
do
SetSpritePositionByOffset(spr2,GetPointerX(),GetPointerY())
SetSpriteAngle(spr1,GetSpriteAngle(spr1)+90.0/60.0)
x1#=GetSpriteXByOffset(spr1)
y1#=GetSpriteYByOffset(spr1)
x2#=GetWorldXFromSprite(spr1,0,5)
y2#=GetWorldYFromSprite(spr1,0,5)
drawline(x1#,y1#,x2#,y2#,255,0,0)
if CheckRadarTrue(spr1,spr2)=1
Print("Radar")
endif
sync()
loop
end
function CheckRadarTrue(spr1,spr2)
true=0
for y=-5 to 5 step 1
for x=-5 to 5 step 1
x1#=GetSpriteXByOffset(spr1)
y1#=GetSpriteYByOffset(spr1)
x2#=GetSpriteXByOffset(spr2)+x
y2#=GetSpriteYByOffset(spr2)+y
drawline(x1#,y1#,x2#,y2#,128,128,128)
a1=ATanFull(x1# - x2#, y1# - y2#)
a2=GetSpriteAngle(spr1)
if a1=a2
drawline(x1#,y1#,x2#,y2#,0,255,0)
true=1
endif
next x
next y
endfunction true
AGK (Steam) V2.0.21 : Windows 10 Pro 64 Bit : AMD (16.6) Radeon R7 265 : Mac mini OS Sierra (10.12)