abadabadu Posted August 18, 2014 Posted August 18, 2014 When I attach object to vehcile: local veh = getPedOccupiedVehicle ( localPlayer ) local x, y, z = getElementPosition ( veh ) local attached = createObject ( 2455, x,y, 30,0,0,0 ) attachElements ( attached, veh, 0, 3, 0 ) And then I try to rotate attached element with setElementRotation () local x2, y2, z2 = getElementRotation ( attached ) setElementRotation ( attached, x2 + 1, y2 + 1, z2 + 1 ) "attached" element does NOT rotate. ( Even getElementRotation(attached) called in the same frame returns result like it was rotated ). Is there any way to rotate atteched element without breaking the attachment?
Castillo Posted August 18, 2014 Posted August 18, 2014 "attachElements" function have rotation arguments.
Saml1er Posted August 18, 2014 Posted August 18, 2014 Once an élément is attached to other élément then don't use setElementRotation. Use this: setElementAttachedOffsets
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