Kas7 Posted July 7, 2020 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 We learn from our mistakes, not from our success My Discord =>> ! Kas7 ✮ ?eor?e ♛ ?ae? ✮#9999 { "Or ID" }583260997427658752
Moderators Popular Post Patrick Posted July 7, 2020 Moderators Popular Post 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 community profile | map converters | map images | pDownloader | pAttach | model encrypter
Moderators IIYAMA Posted July 7, 2020 Moderators 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 Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Kas7 Posted July 7, 2020 Author 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 We learn from our mistakes, not from our success My Discord =>> ! Kas7 ✮ ?eor?e ♛ ?ae? ✮#9999 { "Or ID" }583260997427658752
Master_MTA Posted July 7, 2020 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 Skype : 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001 every thing is gonna be alright every thing is gonna be okay it's gonna be a good good life that's what my therapist say
Kas7 Posted July 7, 2020 Author 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 We learn from our mistakes, not from our success My Discord =>> ! Kas7 ✮ ?eor?e ♛ ?ae? ✮#9999 { "Or ID" }583260997427658752
Moderators IIYAMA Posted July 7, 2020 Moderators 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 Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Kas7 Posted July 7, 2020 Author Posted July 7, 2020 4 minutes ago, IIYAMA said: It must have been an unlucky tree, nature can be ruthless sometimes. + Thx for help We learn from our mistakes, not from our success My Discord =>> ! Kas7 ✮ ?eor?e ♛ ?ae? ✮#9999 { "Or ID" }583260997427658752
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