uNet hitboxes and movement.
Hi! I'm working on an arena game where everyone is started differently around the arena and only with a knife. I'm aware it's been done before and it's been done better than I can, but it's my first (multiplayer) game and I just wanna have some fun. However, my player (I'm using the default one that comes with unity) isn't doing too hot. He moves, shoots, jumps and can be hit and shot somewhat. Though let's say Player 2 connects and is standing still not moving from his spawn location. Player 1 can shoot him and it will register. However, if Player 2 moves Player 1 cannot hit him half the time and if Player 1 shoots where Player 2 spawned after Player 2 moves away, it registers! Now, many of you may be thinking this is latency and I believe it's not, the movement isn't terribly jerky and their movement is fairly synced. So, I thought, maybe if I add a box collider and it's not nearly "playable", though it registers 10x more than it did before... Though, once I've added said box collider my camera is stuck it won't move horizontally or vertically. Thanks for everyone that helps! Have a great day!
Alright, I've run into another 3 issue while I was gone a solid 5 $$anonymous$$utes. I get these errors
1) NullReferenceException: Object reference not set to an instance of an object UnityStandardAssets.Characters.FirstPerson.FirstPersonController.Start () (at Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs:50)
2) NullReferenceException: Object reference not set to an instance of an object UnityStandardAssets.Characters.FirstPerson.FirstPersonController.RotateView () (at Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs:239) UnityStandardAssets.Characters.FirstPerson.FirstPersonController.Update () (at Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs:64)
and finally 3) NullReferenceException: Object reference not set to an instance of an object UnityStandardAssets.Characters.FirstPerson.FirstPersonController.PlayFootStepAudio () (at Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs:172) UnityStandardAssets.Characters.FirstPerson.FirstPersonController.ProgressStepCycle (Single speed) (at Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs:159) UnityStandardAssets.Characters.FirstPerson.FirstPersonController.FixedUpdate () (at Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs:130)