@name AButton
@persist Use Using
@outputs A
@model models/dav0r/buttons/switch.mdl
interval(100)
User=owner()
if (!Using & (User:aimEntity()==entity() | A) & User:keyUse()) {
    Use=1
    Using=1
}
if (!User:keyUse()) {
    Using=0
    Use=0
}

if (Use) {A=!A}

Use=0
