Controlling other networkview object

Here is my problem I have a vehicle spawner… All works fine when the player who spawned the vehicle drives it but when another player that did not spawn the vehicle tries to drive it does not update or something. I sent the information in a RPC function for example : carPrefab.networkView.RPC ("MoveCar", RPCMode.All,Input.GetAxis("Horizontal"),Input.GetAxis("Vertical"),1);
Which is handled with a player manager on the client side of things. So if anyone can help with controlling another object that was created by another player this will help me with my development.

RPC call should work, maybe your problem is in controlling script. Are u sure u disable 1st player control when another tries to control it?

all the script does is turn the wheels and make the car move… I will look more into it… would it be easier to just manually turn the wheel colliders like I would a game object? for example I just rotate the wheel collider objects.

here is what makes the car move. I got the car script from a vehicle tut I found on the web so I modified for use for a vehicle.

if(isIn)
	{
	FrontLeftWheel.brakeTorque = 0;
		FrontRightWheel.brakeTorque = 0;
	// finally, apply the values to the wheels.	The torque applied is divided by the current gear, and
	// multiplied by the user input variable.
	FrontLeftWheel.motorTorque = EngineTorque / GearRatio[CurrentGear] * Acceleration;
	FrontRightWheel.motorTorque = EngineTorque / GearRatio[CurrentGear] * Acceleration;
		
	// the steer angle is an arbitrary value multiplied by the user input.
	FrontLeftWheel.steerAngle = steeringAngle * Steering;
	FrontRightWheel.steerAngle = steeringAngle * Steering;
	}else
	{
		FrontLeftWheel.brakeTorque = 1000;
		FrontRightWheel.brakeTorque = 1000;
	}

I do not mean inside controlling script but how u use it. First of all check if 1st player receives 2nd player’s RPC call. If it works, then make sure that only this call controls car and u have not any access from 1st player (u are not calling script from FixedUpdate or whatever)

Problem solved lol… that’s what I get for getting on forums I get answers without even talking much to people lol… :smile: but yeah it all works now just a bit of a lag issue but im sure I can clear that up a bit…