How to get the location just in front of the player?

Hey all. Currently my projectile is having collision issues with the player up spawning.

With that being said, I have 2 options:

  1. Use the “Ignore Actor When Moving” node - Not sure how to implement this in general. Here’s what I have for that side of the blueprint:

  2. Spawn the projectile actor just in front of the player - Below I have a screenshot of the blueprint that’s responsible for spawning the projectile actor inside of the player by using the player pawn’s location. Again, I’d like to spawn the projectile just in front of the player.


    I’ve tried using vector math in the past but to really no avail, and I’m decently sure that I need to use something along the linbes of a forward vector node.

Any suggestions on how to do this?

Hey @spctrmTV!

You should add a “Scene node” Component to your actor! Then, put that scene node wherever you want to shoot from, and make sure its rotation matches the direction you want. It’s just a reference point.

Then drag in that scene node into your event graph and use that to get your spawn transform location and rotation! :slight_smile:

Thank you for the reply! I try to add a “Scene” to DefaultPawn0 (my actor), but I can’t get it to save. What’s up with that? (Sorry extremely noobie question)

Thank you

1 Like

Strange! And you compiled before saving?


then
image
then
image
?

@joonagi You’re very welcome! And welcome to the community!!!