@name Radar
@outputs X Y
@persist MD N
if(first())
{
    runOnTick(1)
    MD = 1000
    
    holoCreate(1)
    holoAlpha(1,0)
    holoEntity(1):setTrails(30,0,3,"trails/laser",vec(0,255,0),255)
}

N = curtime()*200
print(4,toString($N))
R = rangerOffset(MD,entity():pos(),entity():forward():rotateAroundAxis(entity():up(),N))
X = cos(N)*R:distance()
Y = sin(N)*R:distance()
holoPos(1,entity():pos()+vec(X,Y,15))
