I’m having a problem with the branch
i am trying to make a outline overlay around the object, when the LineTrace hits the object, it should highlight
i made two separate for enabling and disabling overlay.
the TRUE side is connected to overlay, when the line trace hits it highlights
it says “hitting”, means everything is working.
The FALSE side is connected to end overlay, but when the line trace hits it, the function doesn’t call
It says “NotHitting” means the print screen it working, but the function is not being called.
new to unreal😅, thanks for the help
VisAgilis
(Vis Agilis)
March 12, 2025, 6:11pm
2
The targets are the hit actor right? Right click on the exposed Hit Actor pin of your line trace node and promote it to a variable. Set that variable to the hit actor only after the True pin of your Branch node , and use our new variable as the target when you wanna access it after the False pin.
Hope this helps
its working now thanks,
but how it works, i don’t understand
thankyou for your help
VisAgilis
(Vis Agilis)
March 12, 2025, 8:30pm
4
You were trying to get the hit actor when the line trace wasn’t even hitting anything
Even if it was hitting something, it wasn’t the actor you were expecting.
This way, we’re saving the last hit actor (when your conditions are met)
1 Like
oh, now get it, thankyou very much
1 Like