Hello, based on the reference image:
- The InputAction should only be used to toggle the Boolean value.
- There’s no need for the WhileLoop, I would do such checks OnTick.
- You can connect the ReturnValue (Boolean) of the LineTraceByChannel directly to the Branch, there’s no need to check if it equals True.
Here’s an image for your reference:
Please keep in mind that this is just a suggestion based on the image reference you provided.
I hope it helps!