Casey Benton
Registered User
Join date: 27 Jul 2005
Posts: 39
|
08-08-2005 20:59
I though I read about a solution to this problem once, but can't find it now.
Basically, I have a prim with a door script on it, and it's very important that it stays in its spot. The problem, is, when giving a quick click to activate the door, somtimes it gets a click-drag. Just a little bit, but enough to bump it out of position.
I can't lock the prim, because then the door script doesn't work. Is there a way to make it non-dragable?
Thanks!
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
08-08-2005 21:05
_____________________
---
|
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
|
08-09-2005 01:30
According to this thread, I'm not sure whether prim-drift issue was solved or not. But it seems not to be the matter that user can do anything for.
_____________________
 Seagel Neville 
|
Persephone Milk
Very Persenickety!
Join date: 7 Oct 2004
Posts: 870
|
08-09-2005 09:31
Casey:
Are you sure your problem is a click-drag? I had a similar problem with my doors. Over time, which each subsequent opening and closing, they would move ever so slightly. I believe it was due to small rounding errors in the rotation. The solution I found (or got help with - thanks Koni!), was to record the position of the door while closed, and return it to that recorded position when it is closed again. Now my doors stay in place.
Hope that helps. I am at work now so I can't post the script changes. But if you IM me in-world tonight I will send you a door that does not move.
Perspehone Milk
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
08-09-2005 10:02
Store the door's position on rez, reset, and when the script compiles (on_rez and state_entry). After the door rotates, set it's position back to the stored position. 
|
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
|
08-09-2005 11:05
If you are making a standard style door, a good trick is to make it twice as wide as you want and use the Cut controls to trim it down to half size. This puts the center of the door where the hinges should be. A simple rotation around the Z axis will swing it open as you would expect, and its position never needs to change.
_____________________
~ Tiger Crossing ~ (Nonsanity)
|
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
|
08-09-2005 11:06
I wish this was the default, or could be set from the editor without having to add a script to every object, even temporarily. 
_____________________
~ Tiger Crossing ~ (Nonsanity)
|
Persephone Milk
Very Persenickety!
Join date: 7 Oct 2004
Posts: 870
|
08-09-2005 12:36
From: Tiger Crossing If you are making a standard style door, a good trick is to make it twice as wide as you want and use the Cut controls to trim it down to half size. This puts the center of the door where the hinges should be. A simple rotation around the Z axis will swing it open as you would expect, and its position never needs to change. This is an excellent idea. I like! Persephone Milk
|
Casey Benton
Registered User
Join date: 27 Jul 2005
Posts: 39
|
08-09-2005 21:45
From: Persephone Milk This is an excellent idea. I like!
Persephone Milk This is exactly what I do for my normal doors. The problem was with a trap door, and it was definitely click-drag, but the llSetStatus thing took care of it. Thanks!
|