How to trace when line hit ends

You can check Return Value of LineTrace node.

260052-linetrace.png

Hi!

I am having an issue with figuring out a system, how to check when line trace has ended hitting with an object it has previously hit. In example, I am making a line trace from my cursors and it works fine registering hits with objects. However, I would need to trigger an action when the line trace has ended with the desired actor in question. Could somebody help how to achieve this with BP?

This is needed for a highlight system, where cursor hit highlights the hit actor, but ends when cursor hit ends.

Attached is a screenshot for the sake of clarity. It has a futile Branch system (I understand why it won’t work so please ignore). I can’t neither use ‘Cast Failed’ as it leads to errors.

Kind thanks.

if your looking to see when the hit result changes the you could save the first hit result to a variable then on second hit compare the variable (the first hit) to the second, if they are different then you know its a different actor, if they are the same then you know to highlight it. oh and when i say compare i just mean actor equal (==) actor then a branch. i remember a similar situation in fairly recent livestream with the great Zac Parish.