Rotate on z axis c++

Rotation around the z axis (up/down axis) is called Yaw. It’s a member variable of FRotator:

I’m not clear on what you mean by it’s not working. What do you observe and what do you expect?