Hello, I have made a multiplayer game using the normal character scripts that comes with unity that I have just tweeked a bit. This is the error im getting
NullReferenceException: Object reference not set to an instance of an object
FPSInputControllerMultiplayer.Move () (at Assets/Standard Assets/Character Controllers/Sources/Scripts/FPSInputControllerMultiplayer.js:42)
And it says that the problem is this line of code
motor.inputMoveDirection = transform.rotation * directionVector;
The scripts works. Its just that I have a (really bad made) enter/exit vehicle script, and every time i enter a vehicle the other clients crash until i leave the vehicle. Any suggestions??
↧