Damaging Actors with OnTakeAnyDamage in Unreal Engine
I didn’t know about a handy event that can apply damage to an actor, thanks to the OnTakeAnyDamage function. It’s an Event Dispatcher that Actor classes listen to, and if applied from another object, it’s really easy to pass on how much damage happened and also how it was caused. Consider this code plugged into …