How to move legs up and down when arduino sends us X and Z?


Can someone help me, guys? I am using UE4Duino plugin to receive X-axes and Z-axes from Arduino using serial port successfully. However, I have hard times by trying to convert values to relative axes in UE4 and also control person legs moving up and down. You can see the blueprint screenshot attached.

Please advise!!!