system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: how does painkillers know where the pain is?
gpt
They don't.

They simply inhibit the inflammation that causes the nerves to send pain signals, or the nerve signals themselves.  That's the whole point, you don't need 100 different medicines for each body part because the drug effects the whole body.