Correction, you are a newbie. n00bs are people who spam the boards.
and to activate a button.
forget dealing with the enemy... if you do you have to edit several files and that gets annoying as complexity increases. Instead make sure there are no other dynamic objects surrounding the switch and give it this script.
:anywithin=60,plrdistfurther=60:activateifused=1
What this does is activates whatever the switch activates if the enemy is near it... but the plr has to be far away (anywithin=bugged i think).
My Government sucks, join the rebellion!
One can only know so much, only comprehend the world to a point. After that we exist as impressionable beings. Doing nothing, being nothing, forever nothing.