Projectile homing player?

All tutorials in youtube and unreal are about a projectile homing the enemy. I cannot find any way to make some enemy projectiles chase the player im controlling. I set the homing box in projectile movement to true. I know there is the functions set homing target and set is missile homing but I don’t know how to use them correctly. can someone show me how to make the projectiles home me and rotate to the position of the character the best way?

i thought homing wasn’t working when i first implemented it, but turned out i had to crank the Homing Acceleration Magnitude up much higher than i expected. are you sure that value is strong enough?

Hello GitGudGitRekt

I have provided and example below of an object that will track the player. I have also included in the example how to switch the target. I hope that this information helps.

Example:

In this example I have created this blueprint within the blueprint of the object that will be moving. If you would like to change the target that the object is tracking you will want to change the top actor location to the actor you would like to for the object to track. If you would like to change how quickly the object moves, you will want to change the float value that is currently set to 5 in the example.

Make it a great day

oh ok i guess that is another way to make a homing object. i have already done my homing projectiles (a different way) by using the set homing target function thing, i kind off had to random guess where to connect everything but it finally worked!. but actually i have a friend that needed an object to follow him so your answer actually just helped him. thank you very much haha

Hey, I used that blueprint because I was having a similar problem but I can’t figure out how to reference an object/actor in the in the blueprint. I want to make a projectile which, in it’s simplest form, targets the player and then when the player right clicks it toggles via flip flop to target a specific object in the scene. I have done all of that but I can’t figure out how to reference the object so that I can make is target it

Hello ,

I have provided some documentation below that will help you with finding actors in your scene. I hope that this information helps.

Link: https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/FindingActors/Blueprints/index.html

Make it a great day

Thank you, I looked at the thing but unfortunately I wasn’t able to use that information to fix my issue because the “Get actor location” requires an actor reference and as far as I can tell there is no actor reference in that. I made it and changed it to fit me but there is no blue node that I can connect.