How would you go about making a “projectile” fire in a straight forward vector from the third person model while still being able to turn and firing in the same manor, i have tried a mixing a few nodes and i was able to shoot straight once but it was always shooting in the starting position.
The camera is set to the mouse so the “player” turns with mouse
i dont know but im using the ue4 sidescroller and my projectile fires from my characters waist to the camera. how can i fix this? i copied most of the blueprint from the first person tutorial.
It looks like the projectile is spawning at the root of your pawn because you’re only taking the Actor position of the Player Pawn. I’d try adding some form of offset to the Z Axis before going to the Make Transform.
In your projectile, make sure your velocity is set down your y at 1.0 instead of your x at 1.0. This can be found in the projectile movement component detail pane. Once you do that, set the spawn location and rotation to the mesh/capsule of your player. Attached is a copy of what I did:
To control rotation of fire, try placing a clamp on the spawn function in the character blueprint, if the player is between (A,B) rotation, can spawn projectile, if not, cannot.