Hi Guys! I placed a model in WED, and attached an action to it. I try to make it globalized at runtime, but nothing happens.

Here is the code:
Quote:

#define max_degree skill3
//uses: max_degree
action left_rotating_door(){
wait(1);
while(enet_get_connection() == 0)
{wait(1);} //wait until a host is initialized
if(enet_get_connection() == 1 || enet_get_connection() == 3)
{
enet_ent_register(my); //the server registers the entity now
}
while(enet_ent_globpointer(my) == -1)
{wait(1);} //wait until the entity has a global pointer

error("stage_one");

c_setminmax(my);
my.skill1 = my.pan;
while(player == NULL){wait(1);}
while(1){
error("e");
if ((vec_dist (player.x, my.x) < 70) && (key_e == 1)){
if(my.skill[1] == 0){
while (my.pan < my.skill1 + my.skill3)
{
my.pan += 5 * time_step;
wait (1);
}
my.skill[1]=1;
}else{
while (my.pan > my.skill1) //
{
my.pan -= 5 * time_step;
wait (1);
}
my.skill[1]=0;
}
enet_send_skills(enet_ent_globpointer(my),my.skill[1],my.skill[1],-1);
}
wait(1);
}
}



I do not get even the "stage_one".
What can cause this?