Mapped in wrong spot - 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: Mapped in wrong spot (
/showthread.php?tid=481885)
Mapped in wrong spot -
thefalcon - 18.12.2013
Hello i mapped a very nice custom interior for a server and I did it in the air. I need to now reset every single object to ground level and move it over to LSairport any suggestions?
Re: Mapped in wrong spot -
-CaRRoT - 18.12.2013
Delete the old map & make a new one in the location you want.
Re: Mapped in wrong spot -
Excelize - 18.12.2013
You can't actually move ever simple object, so you need to remap it.
Re: Mapped in wrong spot -
Vince - 18.12.2013
You can move a map fairly simple with a little bit of code, but if you want to change the orientation (angles) then that's a whole different story. Say, if your maps is at -50, 100, 1080 and you want it to be at ground level, say 300, -2000, 10 then the only thing you need to do is add 350 to x, subtract 2100 from y and subtract 1070 from z.
Re: Mapped in wrong spot -
DavidBilla - 18.12.2013
Quote:
Originally Posted by Vince
You can move a map fairly simple with a little bit of code, but if you want to change the orientation (angles) then that's a whole different story. Say, if your maps is at -50, 100, 1080 and you want it to be at ground level, say 300, -2000, 10 then the only thing you need to do is add 350 to x, subtract 2100 from y and subtract 1070 from z.
|
Yes that is possible but only if there are less objects in his map,but if the map contains much objects,then it is better to re-map it instead of wasting all the changing the coordinates
Re: Mapped in wrong spot -
cessil - 18.12.2013
there are many programs where you can use a macro to add text, you could even create a small script in pawn to work out and print the new co-ordinates into a text file
Re: Mapped in wrong spot -
ikey07 - 18.12.2013
You can try as this
new Float:movex = 1000.0;
new Float:movez = -1000.0;
And at each object line add something like this.
CreateObject(objectid,100.0
+movex,100.0,100.0
+movez,0.0,0.0,0.0);
So it moves that object for 1000.0 coords around the map for example.
Hope you got what I mean