How would I create a single death event that allows for any enemy to kill the player just by touching them?
As the question implies, I would like to have a single event that allows for a number of enemies to kill the player instead of just one. Synonymous to how in Mario games enemies such as Koopas, Goombas, and Piranha Plants can all kill Mario. I have no previous experience with applying damage.
asked Aug 04 '17 at 04:24 AM in Blueprint Scripting
So for applying damage there are some very handy nodes available. In your damage causer, ie your enemy, you can have a Apply damage node, and in your player character, you have a Event AnyDamage. I have attached 2 screenshots of a simple setup.
I have used event hit to trigger the damage, but you can trigger it however you like. If you want it when the enemy touches you, then use event hit, and in the actor details, ensure "generate hit events" is enabled under collision.
Follow this question
Once you sign in you will be able to subscribe for any updates here