Fire Projectile from a Projectile

I’m attempting to create a rocket that homes in on the nearest enemy, and fires defensive lasers at other projectiles that pass within its range.

I’m having the homing rocket perform a sphere trace on event tick. This is successfully detecting hit events with enemy projectiles, but the defensive laser doesn’t seem to be functioning correctly. When debugging, I’m seeing that lasers are spawning, but the forward vector does not appear to be getting passed from the Homing Missile blueprint to the Defensive Projectile blueprint.

Does anyone see what I’m doing wrong, and have advice on how I could implement this successfully?

The first image is of the Event Tick on my Homing Missile.

The second image is my base projectile Event Begin Play (also doesn’t seem to be an issue here)

The third image is of the Event Begin Play for the Defensive Laser projectiles.

Please let me know if I haven’t shared enough for my issue to make enough sense :slight_smile:

Thank you kindly in advance!

1 Like

Looks like it was a bug with getting the location of the hit result. I was able to resolve the issue by getting the hit actor, then using a “get actor location” node as a workaround.

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