SA-MP Forums Archive
GetDynamicObjectPos & Rot incorrect? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetDynamicObjectPos & Rot incorrect? (/showthread.php?tid=496691)



GetDynamicObjectPos & Rot incorrect? - Phil_Cutcliffe - 23.02.2014

I'm having to use my furniture system in the following way because Dynamic object pos & rot seems to be totally incorrect.

I have to create a normal object and edit it. Then destroy it and create it as a dynamic object.

When I use just dynamic objects it doesn't get the correct dynamicobjectpos & rot.

Any reasons for this?


Re: GetDynamicObjectPos & Rot incorrect? - MP2 - 23.02.2014

Show your code. You shouldn't need to use GetDynamicObjectPos/Rot when editing an object..


Re: GetDynamicObjectPos & Rot incorrect? - Phil_Cutcliffe - 23.02.2014

Quote:
Originally Posted by MP2
Посмотреть сообщение
Show your code. You shouldn't need to use GetDynamicObjectPos/Rot when editing an object..
It's ok I see what I was doing wrong. I'm using the GUI editor for it. I was using objectid instead of my ObjectInfo[i][oObject] in replace of the objectid. It was just getting the coords for the wrong object.