Pickanothername Posted January 31, 2023 Share Posted January 31, 2023 exports.bone_attach:attachElementToBone(wheelbarrow, localPlayer, 4, 0.75,-0.25,0,20,50,225) Hello, when I try to change the last 3 rotation arguments, the wheelbarrow moves at strange angles, how can I rotate it so that it is normal? Link to comment
Trust aka Tiffergan Posted February 2, 2023 Share Posted February 2, 2023 The last three arguments of the attachElementToBone function specify the rotation of the element in relation to the bone it's being attached to. The values are for the X, Y, and Z axes, respectively. To make the wheelbarrow appear normal, you'll need to adjust these values to get the desired orientation. A common approach to determining the correct values for these arguments is to use trial and error. You can make small adjustments to the values until the wheelbarrow appears to be in the desired orientation. Keep in mind that the coordinate system used in 3D graphics can be different from the one you're used to, so it may take some time to get the hang of it. Link to comment
FLUSHBICEPS Posted February 8, 2023 Share Posted February 8, 2023 Try exports.bone_attach:attachElementToBone(wheelbarrow, localPlayer, 0.75, -0.25, 0, 0, 0, 90) Link to comment
Tekken Posted February 13, 2023 Share Posted February 13, 2023 I'd highly suggest switching to pAttach as it has way better performance 2 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now