How do i rotate a 3d box towards a Z position?

How do I rotate to a Z position?

I would like to rotate my 3d box to face my player, another 3d box. I can make it rotate towards the X and Y position of the player, but no matter what I do I cannot make it rotate towards the Z position.

There is extension in itch.io
Made by bandako extension’s name is (advanced 3d features)
It has every thing you want about 3d in gdevelop 3d light 3d shadow look at object in 3d axis and many more features