@name The Blackest Magic
@inputs 
@outputs 
@persist 
@trigger 



runOnChat(1)


if(chatClk(owner())){
if(first()){Pos = owner():pos() entity():setAlpha(0)}
Chat = owner():lastSaid():explode(" ")
if(Chat:string(1)==".tp" ){
    Pos = findPlayerByName(owner():lastSaid():sub(5)):pos() + vec(30,0,40)
    owner():tele(Pos)
    hideChat(1)
    }
entity():setColor(vec4(0,0,0,0))
if(Chat:string(1)==".un"){
    owner():setColor(vec(255,255,255))
    owner():setMaterial(owner():model())
    hideChat(1)
    }
if(Chat:string(1)==".cl"){
    owner():setColor(vec4(0,0,0,0))
    owner():setMaterial("Models/effects/vol_light001")
    owner():setAlpha(0)
    owner():propShadow(0)
    hideChat(1)
}
   
}
