How to add to a variable and set it in blueprint?

I’m new to blueprint and trying to make the camera look around with the mouse. At first I used GetMouseX and Y directly and it worked but the rotation followed the current speed of the mouse resulting in it flicking back to 0. I’ve tried to use float variables to add GetMouseX and Y on to like varForX += MouseX but now it’s stopped working altogether?

I’m not entirly sure what RotationFromXVector is doing either :confused:

Thanks.

Your “set” nodes have to be connected. You need a white execution pin going to them from the tick (although this is probably a poor use of tick).

If you are new to blueprints you may find this tutorial series helpful. The first few videos may be too basic if you are familiar with some programming concepts but others I think you will find useful.

Thankyou for the link, I’m familiar with Unity and Godot and trying Unreal with blueprint.
I’ve connected SetRelativeRotation to a Set and connected that to the other Set, looking up and down on Y works but side to side on Z flicks from -90 to 90.