Projectile replicates at wrong location
I've created a player and projectile classes using First Person Shooter C++ Tutorial. I've also created an RPC function to handle projectile spawning on the server. The projectile and its movement is replicated.
The problem is that the client projectile is "shifted". It spawns at the side of the player instead of the center. The other thing is that when I shoot the other player the projectile bounces off about 1-2 meters before that player. Everything works fine on the server though (projectiles are spawned in the center and the collisions work fine).
The spawning function:
Does anyone know why is this happening?
asked Apr 30 '15 at 09:46 PM in C++ Programming
Try adjusting muzzleoffset in your instance.
It's possible the projectile is colliding with the character collision component instead of the mesh.
answered Apr 30 '15 at 10:03 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here