Flying companion

Hi, I made a simple flying light that follows the player and set an arrow as destination above the players head. The light follows the player and works fine but when it starts moving always fall to the ground not flying in the air.


I set the movement mode flying and gravity scale to zero, and tried bunch of other things but can’t get it right. I think the problem is I got the arrow Location instead of Transform but when I get the world transform of the arrow I can’t connect with the destination pin on Ai Move To. Please Help.

1 Like

follow player

To be clear, the light is a separate actor.

I’m not quite sure what you have going on, are the player and light the same actor?

You don’t need the arrow transform, just the location. But I think your main problem is that the AI is setup wrong for this character. Anyway, much smoother following the player on tick.

You could also add an RInterpTo for a spot light if needed.

  • from current spotlight rotation
  • to the camera manager get camera rotation

Also, don’t make the light a character - it tries to walk on the ground.

You can set it as a pawn and give it a floating movement component if you want to go the route of ai controlled pawn.

Thank you. It works perfectly.
Yeah I wanted to make the like a different actor not in the character blueprint, sorry it was confusing.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.