I am new to UE and it seems like a simple question but I could not find anything useful online. I am moving a camera using AWSD but I don’t want it to go forever. I am Trying To check if float is in range if it is mive the camera if it is not stop.
It’s a bit trickier than that, I had the same issue a few days ago. Is this case once you get under the min or over the max value, it will never return True anymore and the camera will be stuck.
InRange is a nice little node, but here you have to separate Less Than and More Than based on the axis value. When moving left, you only want to check the left-most value, and vice versa.
In my case I multiply the axis value by -1, but that’s probably unnecessary. Also, you may need to swap the second branches depending on your setup.
Axis Value returns [-1, 1]; multiplied by 10, it will be [-10, 10], so the InRange node will always return true. You need to check the Spring Arm’s relative X and Z location respectively, not the Axis Value. See my comment above.