I have one thing to do that I just cant figure out how to do it in Unreal.
I have a enemy (archer) that spawns a projectile when player comes close.
Everything it’s working fine except sometimes I kill the enemy as soon as it spawned the arrow.
What I want is:
In the enemy blueprint node before I kill it (destroy actor), I get the last projectile (arrow) spawned by this enemy and detroy it too.
I need a way to connect each enemy to every projectile that he spawns.
And I have a lot of same blueprint enemies (archer) in the map and a lot of arrows spawned for each enemy.
Thank you very much!