Im not sure I get what you mean by you "comment out the my.pan stuff"...
If you mean something like this
action acao_obst_rampa1()
{
my.OBJECT_TYPE = OBSTACULO; //make ME an Obstaculo
my.TIPO_OBJETO = 4;
while (!player) { wait(1); }
while(me)
{
// my.pan += 1 * time_step;
wait(1);
}
}
then the oject should not move, no matter what happens in the player action.