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?

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