How to pick up a projectile

I’m trying to better understand how to I could Pick up a projectile that lands after being shot. Similar to an arrow. Right now I have it set up to allow three projectiles to be spawned. I want to be able to walk up to the projectile, press E on it and “pick it up”, allowing the player to shoot again till there are three in the world again.

I may be able to use that as well.

But I was thinking more of: I look a the projectile > Press E > Projectile disappears > ProjectilesInWorld is reduced by 1 allowing 1 projectile to be shot. Cause I only wanna allow the play to have 3 out at a time.

In you character BP Upon event (button on line trace or on overlapping) attach actor to component then set it to snap to target rotation and location. The node can be found by right clicking and typing attach. Your parent is the component in your character bpat the location you want them displayed ie quiver.

Even easier on pressing e do a line trace withe start at the world location of the camera component and the end needs to be the forward vector of the camera * a float (the distance to search) plus the world location of the camera(put on debug to persitent to see it) now break the hit and off of hit actor cast to your arrow BP now if cast is true destroy arrow by pulling of the cast and searching destroy actor and add one to your ammo counter(this should be a Int) I would clamp this value before you set it. You can use also pull off the cast failed to cast to a door or object and have that run any other logic.
Gl hope this helps

That solved it. I’m always trying to do things more difficult than they need to be lol. Thank you very much! :slight_smile:

no worries glad to help