I’m looking to learn how to set up a ‘interact’ feature. A blueprint that will play once a keyboard key is pressed near a specific asset and the character plays an animation. Any documentation or tutorials that will help me set this up?
Detect items ahead of you by line tracing
Line trace will return actor refrence, now either you gonna make a function like OnInteraction in common base actor class or you can use interface like Interactable with such function and implement that to all actors that you can interact with and call it to actor from line trace when interaction button is pressed.