Georgia Wetherby
Registered User
Join date: 13 Apr 2009
Posts: 5
|
09-17-2009 13:36
I'm making a musicbox and need the lid to open and close. I have tried every door open script I have in my inventory and even hunted up a few new ones from friends. The script works great if I rezz the object and keep it in one place. Once I rotate it, the lid goes all wonky on me and turns various degrees.
What am I doing wrong here?
|
RacerX Gullwing
Magic Rabbit
Join date: 18 Jun 2004
Posts: 371
|
09-17-2009 14:09
you need to use a llSetLocalRot(); which is based on the root prim. instead of a llSetRot(); which is based on the sim.
|
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
|
09-17-2009 15:59
This wonderful little script by Void Singer is the basis of almost every door or lid I make now -- well worth a look /54/88/138014/1.html#post1737938
|
Georgia Wetherby
Registered User
Join date: 13 Apr 2009
Posts: 5
|
09-17-2009 18:12
Worked like a charm - thank you so much!
|