This is the action now:

Code:
action gun_act(){
my.emask |= ENABLE_IMPACT;
my.event = gun_func;
while(1){
my.pan += 5*time_step;
wait(1);
}
}



My player action:
(In my level is a MDL entity with this action.
Movement is OK, but collision doesn't work...)

Code:
action speler_act(){
player = me;
while(1){
camera.x = me.x;
camera.y = me.y;
camera.z = 90;
camera.pan = me.pan;
if(key_w)
c_move(me,vector(15*time_step,0,0),nullvector,GLIDE);
if(key_s)
c_move(me,vector(-15*time_step,0,0),nullvector,GLIDE);
if(key_d)
me.pan -= 10*time_step;
if(key_a)
me.pan += 10*time_step;

wait(1);
}
}




The best games are the games you create yourself.