@name 
@inputs V:vector
@outputs 
@persist 
@trigger 

    E=entity()
    O=owner()
if(tickClk()){

    
    
        #Prop selection code
    if(O:keyUse()&O:aimEntity()&O:aimEntity()!=E){
        #Set the old prop to 5 mass and remove the trail
        E:setMass(500)
        E:removeTrails()
        #Designate the new prop and play with its properties
        E=O:aimEntity()
        E:setTrails(130,0,0.2,"trails/electric",vec(255,255,255),255)
        E:setMaterial("models/alyx/emptool_glow")
        #E:setMaterial("models/props_combine/metal_combinebridge001")
        E:setMass(50000)
        print("Prop selected")
}}
