Hi there,
got a problem with the enet_ent_register function. I palced some actors in WED and give them this action
action standing_guard()
{
while(enet_get_connection() == 0){wait(1);} //wartet bis ein Service initialisiert wird
if(enet_get_connection() == 1)
{
enet_ent_register(my); //der Server registriert nun die Entity
}
while(enet_ent_globpointer(my) == -1){wait(1);}
var ani_speed = random(3)+1;
while(1)
{
my.skill1 += ani_speed*time_step;
if (my.skill1 > 99){my.skill1 = 0;}
ent_animate(me,"stand",my.skill1,ANM_CYCLE);
wait(1);
}
}
Now the problem is that the entity register dont seem to work cause my npc dont do his animation. Also if i connect as a client too the entity is not synchronized.
I think it´s looping at the wait for the globpointer. I removed that line but than the entity is not registerd. I start as a SERVER not SERVER_CLIENT.
Whats the problem?