@name Aiming A Prop
@inputs  EGP:wirelink List:wirelink Up Down
@outputs 
@persist Index
@trigger 
runOnTick(1)

Find = findByModel("models/props_lab/reciever01a.mdl")

if(Up){Index--}
if(Down){Index++}
if(Index > Find){Index = 1}
if(Index < 1){Index = Find}

for(I=1,Find){
    EGP:egpText(I,findResult(I):toString(),vec2(10,20*I))
    }

Printer = findResult(Index)

List:egpText(1,"Distance: "+round(Printer:pos():distance(owner():pos())),vec2(10,10))
List:egpText(2,"Name: " + Printer:toString(),vec2(10,30))

