Download

Pick up problems

Hi.
I have been working on a small horror survival projekt and i have stumbeld upon a problem that has been bothering me. I have have been following this series from unreal how to make a inventory.
(https://www.youtube.com/watch?v=r4tltrLLVuQ&list=PLZlv_N0_O1gZalvQWYs8sc7RP_-8eSr3i)

What I need is a way pick up the Items when the player is inside the trigger area AND is looking at the object or looking on a small trigger surounding the object. from what I know I have to set up a Line trace in the “TICK” function and set a boolean in either the player or in every single object but I dont know how to set that stuff up.

I would be really happy if anyone could help me either by sending a picture of the script or by showing me a video that could help.
Thanks