@name Simple Cloak @inputs @outputs @persist [Cloak]:number [O]:entity @trigger if (first()) { O = owner() #Save owner to a variable, to reduce ops :> runOnChat(1) #Only run when someone speaks } if (chatClk(O)) { LS = O:lastSaid():lower() if (LS == "cloak") { hideChat(1) Cloak = !Cloak printColor(vec(255,255,0),Cloak ? "Cloak engaged" : "Cloak disabled") O:setAlpha(Cloak ? 0 : 255) O:setMaterial(Cloak ? "Models/effects/vol_light001" : "") O:weapon():setAlpha(Cloak ? 0 : 255) } }