Is the rotation of objects in ue4 editor correct?

But how would you rotate an object around its local X-axis via c++ script without adding the rotation up to Y and Z axis at the same time?