I’ve managed to create everything I need to right now, I swapped out the capsule for the Engineer model and then attached his animations. I have a JS that controls his movement/sprinting and plays animations when they happen.
if ( Input.GetAxis( "Horizontal" ) || Input.GetAxis( "Vertical" ) )
{
if ( Input.GetKey( "left shift" ) || Input.GetKey( "right shift" ) )
{
// Running
isWalking = false;
isRunning = true;
animation.Play("run");
}
My problem is, if two people are playing the game and both are stood still, the idle animation plays, if one person sprints, both players play the run animation. How can I set it so they only play the animations for the model they own?