SA-MP Forums Archive
Object rotation - 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: Object rotation (/showthread.php?tid=389668)



Object rotation - Glad2BeHere - 03.11.2012

object id 3858

I need the rotation xyz angles to get this lying down like a roof, on the ground please i cannot seem to find it
X Y Z
CreateObject(3858, 0, 0, 0, 0, 0, 0);


Re: Object rotation - Tom1412 - 03.11.2012

when you are setting a object to a rotation when using createobject.

Createobject(id, x,y,z(these are posiont in the world),x,y,z(these are the roation x,y are moving in a roation way depending on the type, Z is only up and down).

Hope this helped need more help message me or add me on skype( want skype message me requsting)


Re: Object rotation - Glad2BeHere - 03.11.2012

i cant find it because its hard, finding it to lay flat on the ground so im asking for help for someone to put the code for the object laying flat on the ground got it?


Re: Object rotation - Basssiiie - 03.11.2012

Did you have math in school? You can rotate it around either the X or Y points by 90 degrees to get it to lay down.


Re: Object rotation - Glad2BeHere - 03.11.2012

it wasnt as easy u talking about maths skwl i had use all XYZ angles in obtaining it which was difficult but no thanks to u waste of time


Re: Object rotation - Tom1412 - 03.11.2012

if you want me to create it for you add me on skype aiwa1412


Re: Object rotation - Drake_Lopez - 03.11.2012

Go in game get the Coords you want /save then just copy/paste it to the CreateObject code!

+REP If I Helped! Please!


Re: Object rotation - chuck005 - 03.11.2012

There you go:

Rx = 135.0
Ry = 90.0
Rz = 0