How to determine which limb should be damaged?

I have a character dismemberment system in my game. Each character consists of several parts, and each of them has its own hp. And when the hp ends, the limb falls off. So the event damage event does not have a parameter that would indicate which component the damage came to, and I need the program to be able to determine which limb the damage came to.

Have a look at this thread:

Also, explore the link under that post - a bunch of related ideas from other people.