Modo animation's to ue4 rigging and animating?

iv been trying for a long time now to figure out how to get my animations into unreal but I keep ending up back where I started, my current model face’s z direction with joints y up z to next bone and x side please someone give me an in depth explanation of how I should have everything rigged for a successful import to ue4

From the sounds of it, you need to align your locators for your joints under the setup tab. Be sure to enable locators under the 3D viewport properties (O key, visibility, show centers all) and look at the gimball lock directions for the rotation hierarchies. If they’re a big fat wonky mess, select the joints and use the align option under the setup tab of the command panel on the left and be mindful that the up direction in UE4 is in Z-space, not Y space like it is in Modo.