- Home /
Question by
CazicThule · Dec 14, 2012 at 12:13 AM ·
animationmultiplayernetwork
Animation not playing for networked character
I have a simple script that works like this:
CharacterController cc = GetComponent<CharacterController>();
if(cc.velocity != Vector3.zero)
{
animation.Play("f_walk");
}
else
{
animation.Stop("f_walk");
}
This works fine for the local player, but does not work for networked player objects. What could be the problem here?
Comment
Best Answer
Answer by Eeppi · Dec 14, 2012 at 06:17 AM
You have to use RPC:s. So you have to send rpc that runs animation on every computer. http://docs.unity3d.com/Documentation/Components/net-RPCDetails.html
Your answer
![](https://koobas.hobune.stream/wayback/20220613085412im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Animation does not work for the remote player 0 Answers
Multiplayer Walk animation playing for opposite person 0 Answers
Networking Animation problem 1 Answer
Network animations 2 Answers
Network Animator not syncing with Clients in Netcode 0 Answers