Why is my projectile not shooting straight near my character?

Alright man, here it is using a modified First Person Blueprint Example

First, I added a Scene Component called “ProjectilSpawnPoint” to the player blueprint to help with finding the vectors and getting the world position to spawn the projectile. I put this Scene Component as a child of the “Mesh” Skeletal Mesh Component so that it would follow the rotation of the player.

Next, is the blueprint. I use the Camera Component, Projectile Spawn Component, and a few other variables to do this. The MaxRange variable is an integer variable I have set to 3000… you can make it whatever you want the max range to be. I also made a variable called MaxRangeHitPoint as a Vector that gets assigned as the world position of the point of the max range of the weapon. Look at the blueprint for the rest and let me know if you need any more help.

1 Like