Kas7 Posted July 7, 2020 Share Posted July 7, 2020 (edited) Why the Object is back to normal after 1000*9 Trees = createObject ( 687, -1430.41699, -2479.06812, 44, 0, 0, 90 ) MarkerTrees = createMarker ( -1430.48157, -2480.47974, 46.21198,"checkpoint",1.2,0,255,0,255) function MoveTrees(hitElement,matchingDimension) xT,yT,zT = getElementPosition(Trees) moveObject (Trees,1000*9,xT,yT,zT,40,0,0) end addEventHandler("onMarkerHit", MarkerTrees, MoveTrees) Edited July 7, 2020 by Kas7 1 Link to comment
Moderators Popular Post Patrick Posted July 7, 2020 Moderators Popular Post Share Posted July 7, 2020 Hi! It's looks like a bug, or maybe it's a "tree mechanism", and trees always stay vertical. Here you can see, it's rotated because I can stand on the rotated tree. 4 Link to comment
Moderators IIYAMA Posted July 7, 2020 Moderators Share Posted July 7, 2020 (edited) Hmm interesting, I knew that there were objects with strange behaviours but I didn't expect it to be with trees. There is of course the wind animation used by some trees, which might be related to the bug. In that case he can try to freeze the object. setElementFrozen(Trees, true) Or if that doesn't work, attach the tree to an element 1 that isn't a tree. https://wiki.multitheftauto.com/wiki/AttachElements Edited July 7, 2020 by IIYAMA 2 Link to comment
Kas7 Posted July 7, 2020 Author Share Posted July 7, 2020 (edited) 3 hours ago, Patrick said: Hi! It's looks like a bug, or maybe it's a "tree mechanism", and trees always stay vertical. Here you can see, it's rotated because I can stand on the rotated tree. 87/5000 Yes you are right when I modify createObject the same mistake happens Edited July 7, 2020 by Kas7 1 Link to comment
Master_MTA Posted July 7, 2020 Share Posted July 7, 2020 2 hours ago, IIYAMA said: Or if that doesn't work, attach the tree to an element 1 that isn't a tree. yeah that will solve the problem but not gonna fix the function this function need to be fixed 2 Link to comment
Kas7 Posted July 7, 2020 Author Share Posted July 7, 2020 (edited) oh 3 hours ago, IIYAMA said: Hmm interesting, I knew that there were objects with strange behaviours but I didn't expect it to be with trees. There is of course the wind animation used by some trees, which might be related to the bug. In that case he can try to freeze the object. setElementFrozen(Trees, true) Or if that doesn't work, attach the tree to an element 1 that isn't a tree. https://wiki.multitheftauto.com/wiki/AttachElements I replaced the {ID} of the tree to {656} and it worked normally instead of {687} Edited July 7, 2020 by Kas7 1 1 Link to comment
Moderators IIYAMA Posted July 7, 2020 Moderators Share Posted July 7, 2020 22 minutes ago, Kas7 said: oh I replaced the {ID} of the tree to {656} and it worked normally instead of {687} It must have been an unlucky tree, nature can be ruthless sometimes. 1 Link to comment
Kas7 Posted July 7, 2020 Author Share Posted July 7, 2020 4 minutes ago, IIYAMA said: It must have been an unlucky tree, nature can be ruthless sometimes. + Thx for help 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