I think you have used the custom code wrong. From what I see, you make the " last create actor" shoot the target ( which mean you make the bullet shoot the target). But your custom code is belonged to the tower, not the bullet.
So I think you should make the custom code in a bullet, not in a tower.