Move actor up when mouse moving up

Hello, im completely new to unreal engine 4 and i want to have that whenever i move my mouse upwards i move an actor that i have spawned in earlier up, the only problem is that i can’t figure out how to move the actor upwards depending on the mouse. Thanks in advance!

You need to listen to the input events. For example, there is a input event by default that it’s called look up (on the first and third person example projects). You can grab the axis value and multiply it with the current delta seconds and the desired distance to move up per second. Then, just add it to the player’s Z part of the location vector, resetting the location afterwards