How to spawn projectiles from different start locations depending on whether viewed in first or third person (multiplayer)?
Currently working on a multiplayer FPS. When firing weapons I am spawning projectiles from a 'muzzle' socket on the gun. This works fine when viewed from first person, but if you see another player firing the projectile it is not originating from their weapon. This is due to both first / third person using different skeletons / animations.
How would I blueprint it up so that the projectile originates from the appropriate weapons socket depending on how it is viewed by the player?
asked May 10 '16 at 04:44 PM in Blueprint Scripting
Place a socket on the Skeleton Asset for each of them, using the same name so you can access it's location from BP without worrying about different names. Also, make the socket's parent be the same bone that controls the gun movement, so it'll move correctly with the gun. Then, in BP, the spawn location will be SkeletalMesh->GetSocketLocation using your socket's name.
answered May 10 '16 at 10:13 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here