Posted By: Kronomanta
[ANET] Send animation - 12/19/09 20:58
Hi!
I try to send my animation to every clients. The animation works correctly on the own pc (host and/or client), but the others cannot see them.
I play the animation normal, then reverse:
Where do I make the mistake?
I try to send my animation to every clients. The animation works correctly on the own pc (host and/or client), but the others cannot see them.
I play the animation normal, then reverse:
Code:
if (key_ctrl > 0 && (my.skill42<1 || my.skill42>99)) { if(my.skill44==-1){my.skill44=1;} else {my.skill44=-1;} } if (my.skill43==0) { if(my.skill44==-1 && my.skill42<100) { my.skill42+=10*time_step; ent_animate(my,"fly",my.skill42,null); } if(my.skill44==1 && my.skill42>0) { my.skill42-=10*time_step; ent_animate(my,"fly",my.skill42,null); } enet_send_skills(enet_ent_globpointer(my),42,42,-1); //sends the new skill value my.skill43=1; } else { if(my.skill43 == 1) //only send the skill if the value has changed { my.skill43 = 0; enet_send_skills(enet_ent_globpointer(my),42,42,-1); //sends the new skill value } }
Where do I make the mistake?