I’m checking on tick, if the actor under the mouse cursor, being hit by the “interactable” trace channel, has the interaction interface. if so, the first time the mouse over trace hits it, it should send only once a “begin hover” interface event to this actor, and when the mouse over trace no longer hits it, it should send an “end hover” interface event, only once again.
and it kinda works, has worked for a while, but I just noticed when I’m holding the right mouse button, it keeps firing the “end hover” event on tick. when i release the button it stops, and I have no idea why this happens, and it’s breaking one of the functions the actor should be doing on end hover, since it’s being called all the time.
I tried to do this some other way, must be a simpler method, but couldn’t find out one.
Macros that have local variables don’t work inside functions. So DoOnce nodes don’t work inside functions.
Having said that, it should be impossible for the End Hover node to ever trigger. No mouse click or tick or anything can ever make it trigger inside the function you posted. It’s being called elsewhere unless they changed how local variables work inside functions.
At the start of your graph, if the Hovering Object and the Hit Actor are the same, the True pin of the branch shouldn’t connect to anything. Still shouldn’t matter because of the DoOnce node, but it’s better to remove that connection.