@name Ninja Stealth
@inputs 
@outputs
@persist 
@trigger 
Mat="Models/effects/vol_light001"
interval(250)
entity():setAlpha(10)
owner():setMaterial(Mat)
owner():weapon():setMaterial(Mat)
owner():weapon():setAlpha(10)
owner():weapon():setColor(vec())
runOnChat(1)
if(last()|chatClk()&owner():lastSaid()=="Stealth off"){
owner():setMaterial("")
owner():weapon():setMaterial("")
owner():weapon():setAlpha(255)
owner():weapon():setColor(vec(255,255,255))
selfDestruct()
    if(owner()){print("Ninja Stealth effect removed")}
}
runOnLast(1)

