How do you set 'HomingTargetComponent' in Blueprints?

Engine version 4.5 now has a Homing attribute to it’s projectiles component but I can’t see how to set the HomingTargetComponent anywhere in the blueprint right after the projectile is spawned. Any suggestions?

Thanks!

Yeah would be cool to know. Can’t seem to find anything about it aswell.

I figured it out.

In the spawn blueprint (in my case my character blueprint) when you spawn the missile, you need to use a getter from the return value of the spawn to get the projectile component, then drag off it and you can use the set homing option.

You then feed it an OBJECT, not a location to home to. In my case, I homed it on my character mesh.

I ended up with a gun I can use to shoot myself.

Thanks! i was trying to make do it within projectile BP that’s why it didn’t work :slight_smile:

I’m not able to set the projectile to follow the target… I’m taking the static mesh of the actor to set it as the HomingTragetComponent. Could you please share a screenshot of your blueprint?

Hi,

I’m not sure if it’s a lot of help but here it is. Locked object is a variable i made to contain the object that is currently in the aim. It has a hit component of the sphere trace. Feel free to ask any questions

Thanks gonzamancg, where are you setting Locked Object? Is it a reference to an actor?

I’m setting up Locked Object in my character event graph. And this variable is a result of and “hit component” of sphere trace. And Sphere trace is tracing everything that gets in front of a character on a certain distance. In other words it’s a primitive component reference.

When I try this, I can’t plug my character into the 'Homing Target Component" It says it isn’t compatible with SceneComponentWeak?

I don’t get how I can get my character into that input. I tried promoting it to a variable but can’t figure out a way to set it.

Thanks, I’m in 4.6

It should be not the “character”, but the “primitive component reference”. In my case it was a hit component of the tracer.

can some one create video tutorial for homing projectile? because i try use it and nothing works, and i don’t know what i did wrong, thx