you could give the NPC a “Collision Component” with an “OnOverlapBegin” event. So while the player overlaps this Collision , the event is triggered. Check for your desired input key and play the sound.
I have a Collision Component surrounding the NPC with a OnOverlapBegin but when I overlap I don’t want it to play the sound straight away. I want it to enable the T key so I press it and have my character speak.
Should I be disabling the T key in everywhere apart from the NPC Collision Component? How would I go about that?