@name WinToggle
@persist Windows:array
@inputs A
@persist B
if (A & !chatClk()) {
    B=!B
}


    if (B) {
        for (I=1, Windows:count()) {
            Windows[I,entity]:setMaterial("models/props_c17/frostedglass_01a")
        }
    } else {
        for (I=1, Windows:count()) {
            Windows[I,entity]:setMaterial("models/props_c17/frostedglass_01a_dx60")
        }
    }
    runOnChat(1)
    if (chatClk(owner()) & owner():lastSaid()=="-w") {
        hideChat(1)
        Windows[Windows:count()+1,entity]=owner():aimEntity()
    }
entity():setAlpha(0)
