SA-MP Forums Archive
Rotate multiple 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: Rotate multiple objects (/showthread.php?tid=576888)



Rotate multiple objects - PizzaPuntjes - 07.06.2015

If I were to say have mapped a bus, and I want to rotate multiple objects facing angle 341.0 without them mixing up within eachother or whatsoever. How can I do this?


Re: Rotate multiple objects - Vince - 07.06.2015

I would say select a parent object and then attach any children with AttachObjectToObject. This allows you to rotate and move the parent object. Its children will retain their relative position.


Re: Rotate multiple objects - Pottus - 07.06.2015

AttachObjectToObject() can work but there is other ways that can be done with math I won't get into it unless that is the direction you want to take.