hey,

1) if something is given an action, that action will then respond to me commands, (e.g my.pan += 100;)

2) if you're not applying the action in WED then declare it as a function, and pass the me variable
so use
Code:
function weapon(ent){
me = ent;
... //blah blah
}

action sel_player{
//blah again
weapon(me);