How do I set up an Inverted camera in blueprints

I am currently trying to see if i could invert the LookUp function “on the fly”, but for some reason, my float always sets itself to -1, even when the blueprint clearly shows otherwise. I don’t really know how to explain my problem very well, so i hope this image will.

When i pess Q to see what my exponent value is, it states -1.0. What am i missing? (Sorry the comments are a bit messed up, i couldn’t be arsed to change them when i added the print string function).

Where and how is the variable being set?

As of now, it’s public and being set in the details panel. I might be understanding it wrong, but when i start the game with the bool set to false, the orange line in the blueprint gets sent through the false output, and when set to true, it gets sent to through the true input (as in the image), so I don’t see how the bool is the source of the missbehaviour.

It seems unlikely, but sometimes weird things happen. To eliminate that as the problem, try setting the bool for invert in-game, by pressing “I” or something to switch the values it’s returning.

Hey -

If I understand correctly you want to be able to swap the vertical axis for camera control? Rather than use a bool to control the branch node, it might be simpler to use a comparison of your Exponent variable so that way it will swap values each time it is pressed.

Works fine. Thanks!