@name Ammuts E2 Welding tool test
@inputs 
@outputs 
@persist R:array E:entity T WELD
@trigger 

if(first()){T=1
    WELD = 0}

interval(1)

if(owner():keyReload() & owner():keyReload()){
    E = owner():aimEntity()
    R:setEntity(T,E)
    T++
}




if(T>2){
    if(WELD ==1){
T = 1}}
