Question by
Gaweringo · Jul 12, 2017 at 11:51 AM ·
2drotationnetworkinginstantiatespawning problems
Gameobjects spawn differently on client and host.
I am making a 2D multiplayer shooter. For the aiming I'm using a empty child from my player witch is always looking at my mouse position. It works perfectly on my host, but on the clients the bullet is just firing on the x axies away from the player.
Code:
[Command] void CmdShoot() { GameObject ThisBullet = (GameObject) Instantiate (BulletPrefab, firePoint.position, firePoint.rotation); NetworkServer.Spawn(ThisBullet): }
I hope someone can help fast
Comment