Trying to make a ball of fire revolve around a player even as they move

I am trying to spawn a fireball that floats around the player even as the player moves around. When I left click, I want the fire ball to fire forward. I’m not exactly sure how to proceed from this point though.

Try Childing the Fireball to the player, or otherwise set its location to be relative to the player (player location + offset).

“Set Actor Relative Location” doesn’t do exactly what you might think it does, look at this question and response

Hi,

to make smooth calculation on your fireball speed when player can move and ball’s destination goes far, use LERP Newbie help with Lerp (vector) + Timeline for smooth moving actors - Programming & Scripting - Epic Developer Community Forums

for shooting part add “get hit result under cursor” to your mouse/keyboard button click even and from this point do what ever you want with fire ball and click location, like change your next destination point for fire ball for exampple

Thank you! The only problem that I am having now is that it is messing with my rotatingmovement component on my fireball1 blueprint.

So

is what the blueprint looks like now. My last question: Is there any way to multiply the forward vector on the top of the blueprint by delta time so it will float around the character as he moves?

You’re looking for the vector * float node. You also want the Get Actor Forward Vector node.

Don’t forget to mark the answer if you’re done!

Sorry, but I am new here. How do I mark it as done?