void main() { object oSwitch = GetObjectByTag("a2_leverswitch"); if(GetLocalInt(oSwitch, "a2leverused") != 1) { PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE); SetLocalInt(oSwitch, "a2leverused", 1); } else { PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE); SetLocalInt(oSwitch, "a2leverused", 0); } }