@name FunWithE2
@inputs 
@outputs 
@persist 
@trigger 
runOnTick(1)


C = owner():lastSaid():explode(" ")
Ent = owner():aimEntity()
Mat = Ent:getMaterial()
if(C:string(1)=="!p"){
        Mat = "models/gibs/metalgibs/metal_gibs"
    }
if(C:string(1)=="!w"){
        Mat = "phoenix_storms/glass"
    }
if(C:string(1)=="!a"){
        
        owner():setMaterial(Mat)
    }    
    
    
if(owner():keyUse()){
        owner():setMaterial(Mat)
    }


