Determining Character Damaged

I am trying to determine the player that was the result of a damage event. I tried using the damage_result result and get the Target from that result, but that returns a damageable and I don’t know if there is a way to get a fort character from that damageable.

That’s a bit of an odd API choice - damageable interface isn’t what you’d expect from Target.

I think you might be trying it back-to-front… Instead of asking ‘what did this damage hit’ try asking ‘did I just get hurt?’. So maybe adding a listener to each player which will trigger when that player is damaged. Then you know who it is from the context… So can you get (or add) a damageable for each player? That gives you DamagedEvent.

How will I know who it is based on context? If I subscribe to all players damaged event how am I supposed to know which player was damaged? Am I supposed to create 16 unique varations of the OnDamaged function and match the player index in the all players array with the OnDamaged function that has the matching number?