If this question has been posted elsewhere and answered, I have yet to find it.
Use Case: I am using a single line trace (being run on a custom event, powered by tick) to find out if the player is looking at anything he/she can interact with (in this case just to show the name of the item). The trace itself works find as in it will find the object and trigger the blueprint. However, since the event fires at the speed of tick, it is CONSTANTLY firing the blueprint.
What I am trying to figure out is a system where once a player’s trace triggers the blueprint, only do that blueprint one time, until the player is no longer looking at the object via trace. I only want the blueprint to fire once WHILE looking at the same object via trace. If the player is no longer looking at the same object, trace as normal again until i hit something else.
I hope I am explaining this properly and that someone understands me. Is there a way to find on TraceEventHit and TraceEventOut like a volume trigger, because that would solve everything for me. I need to be able to SHOW item name while the player is looking at the item, and HIDE the information when the player is NOT looking at it.