Component detect being hit with Line trace?

i am trying to do the same but the other way around.
i need the object to know when it’s no longer being hit by a line trace.
i have objects that i highlight their outline when looked at, that’s easily done with a line trace when a line trace hits an object call the appropriate event, now here’s the kicker, when i am no longer looking at the object i need it to be unhighlighted, when i am not looking at the object the line trace isn’t hitting it so i no longer have a reference to it.
so i need the object itself to know when it’s being hit by a line trace that way i can also manage to make it know when it’s no longer being hit by a line trace.
tried playing around with two variables idea “current object” and “previous object” but i didn’t get it to work as intended, it kinda works but sometimes gets confused and confuses me with it when alternating between the two too fast.

in here i am inspecting a body with body parts that can be highlighted, “open on” and “close off” events are the Highlight and unhighlight events, since i am building up on horror engine i figure why not use and already made events instead of making different one.





and this is the body part class that’s being highlighted


and here is a video of the problem i am facing