@name EmptyPrinters
@inputs User:wirelink
@outputs Fire
@persist Current List:array Target:entity List2:table
if (first()) {timer("select",100)}
if (clk("select") | !Target) {
    Current++
    if (Current>List:count()) {Current=1}
    Target=List[Current,entity]
    #print(Target)
    Fire=0
}
E=User:entity()
#E:applyForce(((Target:pos() - E:pos() - E:vel() / 2) * E:mass())
local TargPos=Target:pos()+vec(0,0,12)#:toWorld(Target:aabbSize()*vec(0,0,2))
if (Target) {E:applyForce((TargPos-E:pos()-E:vel()/2)*E:mass())}
else {E:applyForce((entity():pos()+vec(0,0,12) - E:pos() - E:vel()/2) * E:mass())}

if (E:pos():distance(Target:pos())<3) {
    Fire=1
    timer("select",3000)
} else {Fire=0}
runOnTick(1)

if (owner():keyUse() & owner():aimEntity():pos():distance(entity():pos())<500 & !List2[owner():aimEntity():id(),number] & owner():aimEntity():model()=="models/props_lab/reciever01a.mdl") {
    List[List:count()+1,entity]=owner():aimEntity()
    List2[owner():aimEntity():id(),number]=1
    print("Added",owner():aimEntity())
}
