SA-MP Forums Archive
how to teleport objects - 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: how to teleport objects (/showthread.php?tid=643596)



how to teleport objects - Ilias_ - 23.10.2017

i just downloaded a map.The problem is that in the area that is located the map is locating another one!How can i change the map position to a different location?


Re: how to teleport objects - kAn3 - 23.10.2017

Never tried, but I guess.. modifying all the coordinates by the same amount? Except the Z coordinate.
eg:
Код:
CreateObject(id, 45.000000, 60.000000, 90.000000, 0.0, 0.0, 0.0);
to
Код:
CreateObject(id, 245.000000, 160.000000, 90.000000, 0.0, 0.0, 0.0);
It should move every objects by 200 on the X axys, 100 on the Y one.


Re: how to teleport objects - Ilias_ - 23.10.2017

ty but i found this tutorial https://sampforum.blast.hk/showthread.php?tid=506610