Mech configuring components from one model

I’m trying to create a mech from a single model, but I want the mech to be able to take damage specifically for each part. For example if shot in the foot, it would be recognised as the foot, top of the right leg, head, etc.
Is there any methods for doing this or does the model actually have to be created in components that get attached?

Thanks in advance