Just started with UE4 (and programming in general) and followed the 2D Sidescroller tutorial from Alan Noon. Got to the end of the 2 videos he made and started expanding by myself. Right now I’m working on enemies and destroying said enemies using the shooting animation made in the tutorials. The way I set it up is that the enemies have damage systems just like the BP_Dude and I’m using BP_Shot’s OnComponentBeginOverlap to trigger the damage in the same way that damage is triggered when your character hits one of the traps. The problem is that I can only seem to use this event once per box so its only working for one enemy type. Is there a way to set up a switch so that depending on what enemy the BP_Shot collides with a different path is followed?
Here is how I currently have it set up:
Using the cast failed lets me set it up for 2 enemy types, but obviously that’s not a good way to achieve what I’m looking to do.