Blueprint Issue with Set Actor Rotation

I have tried plugging the node directly and it works it’s just not what I am looking for. I have provided an image showing what I am trying to do but I’m still having trouble with it. Basically The directional lighting object is placed in the center of the map so I will need to restrict the z axis from rotating fully.

][1]