These forums are CLOSED. Please visit the new forums HERE
Getting a Box lid to work |
|
|
Rhonwen Streeter
Registered User
Join date: 24 May 2007
Posts: 5
|
03-11-2008 01:12
I have created a box with a lid that opens and closes when touched. It took me ages to work out how to link the lid ( which contains the adapeted door script) and have it still work correctly. It all works now as long as the box is not rotated away from 0,0,0. As soon as I rotate the box the lid goes screwy. I am new to scripting, so can someone give me a solution in simple language. Thanks.
|
|
Kronos Avro
Under Construction!
Join date: 15 Dec 2007
Posts: 25
|
03-11-2008 01:19
I have a scripted box which is free to copy and modify locate at
http://www.slexchange.com/modules.php?name=Marketplace&file=item&ItemID=554628 Grab this item and either copy the scripts or modify them to your liking. Cheers. |
|
Rhonwen Streeter
Registered User
Join date: 24 May 2007
Posts: 5
|
Wow fast response Kronos
03-11-2008 01:22
Thank you very much
|
|
Kronos Avro
Under Construction!
Join date: 15 Dec 2007
Posts: 25
|
03-11-2008 01:32
You're welcome!
If you need any assistance, feel free to ask. |
|
Rhonwen Streeter
Registered User
Join date: 24 May 2007
Posts: 5
|
Still need a lid fix
03-11-2008 13:33
Thanks Kronos, I got the box (very pretty) but I see that you may have had the same problem as I did as your lid is not linked to the box. The box I have made works in two ways.
1. If i leave the scripted lid unlinked it works perfectly, you just have to click both pieces to move as a bundle and you can move or rotate and it works. 2. if I link the lid (making sure the linking order is correct so the whole box doesn't rotate) it all works fine until you rotate the box. If the box is rotated out of its rezzed alignment position the lid rotates at a diferant angle each time it is touched. So my question is, is there a way of making the script recognize the linked object's new position so that the lid rotates at 90 degrees from that new position? |
|
Renee Roundfield
Registered User
Join date: 10 Mar 2006
Posts: 278
|
03-11-2008 13:56
Here's the script I use. I vary it for a lot of uses. The drawers, the lid to a music box or gift box, house doors.
/15/e4/138010/1.html |
|
Rhonwen Streeter
Registered User
Join date: 24 May 2007
Posts: 5
|
Thank You !
03-11-2008 14:43
Thank you so much for sharing this. I have worked on this for weeks and I was so close to the solution but just couldn't crack it. May all your scripts complile first run.
Cheers Rhon |
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
03-11-2008 20:45
even simpler version with instructions for realistic hinge action
_____________________
|
| . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - |
|
Rhonwen Streeter
Registered User
Join date: 24 May 2007
Posts: 5
|
Thank You
03-12-2008 00:48
I have only just only just joined this forum and I am amazed at the generosity of the people on here. I will study both scripts and will learn a great deal by comparing them.
Thanks Again |