Pawns and Actor Location UE5

Chris Didier
May 16, 2022

We are going to be firing out projectiles from our player point of view.

Our player is called a Pawn Actor. So we want to get our player so in the level blueprint we will right-click and search get player pawn. We are then going to drag off of the return value and get our actors location. This tells us where our player transform is located.

We then hook up our location to our Spawn Transform Location node in our SpawnActor node. We also give ourselves a negative impulse to fire forward in the direction we are facing.

We are now spawning the projectile from our pawn and firing from our pawn, but we can’t aim it just yet.

--

--