SA-MP Forums Archive
Converting a large list of objects to new positions - 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: Converting a large list of objects to new positions (/showthread.php?tid=342545)



Converting a large list of objects to new positions - DeathTone - 14.05.2012

Does anyone know an easy way to move the positions of a huge object list? About 1k objects, i'm trying to add 1000 to the y pos, 1000 to the x pos, ect. Anyone know a good way of doing that? I tried making an ingame converter but didn't work too well.


Re: Converting a large list of objects to new positions - Passout - 14.05.2012

CreateObject(modelid, Float:X+1000, Float:Y+1000, Float:Z+1000, Float:rX, Float:rY, Float:rZ, FloatrawDistance)

try that


Re: Converting a large list of objects to new positions - Roperr - 14.05.2012

I wish there was a converter for this specifically, but I guess you could use http://www.convertffs.com/

You can add your own custom form for example from: {x},{y},{z} to: {x+1000},{y+1000},{z}

Play around with that, I managed to convert a lot of code using the custom formats.


Re: Converting a large list of objects to new positions - DeathTone - 14.05.2012

Quote:
Originally Posted by Roperr
Посмотреть сообщение
I wish there was a converter for this specifically, but I guess you could use http://www.convertffs.com/

You can add your own custom form for example from: {x},{y},{z} to: {x+1000},{y+1000},{z}

Play around with that, I managed to convert a lot of code using the custom formats.
Wow, didn't notice that, thanks guess i'll use that.