"Lock on" Spawned Object

Hello, everything good with you guys?

so i’m having a problem, i’m building a simple Target Lock system (using Gorka Tutorial on YT) to lock on some spawned objects that move around the scene, but when i use the lock, it always looks to the spawner and not the spawned object, even when i put a print string of the display name of the HitTarget, it shows that it hit the correct BP (Spawned Object) but it locks on the spawner coordinates.

i think it’s probably a simple thing but i’m missing something

Hello,

From what I can see, you have to set an ignore condition. But that’s assuming that BOTH your spawned object AND spawner are pawns.

Are they both pawns? Is one and not the other?

If the spawn object is not a pawn, then the function will not work.

It looks like on your get controller, you are targeting the actor self, which may be the spawner that its targeting and not the spawned object.