|
Myoko Takashi
Registered User
Join date: 10 Feb 2006
Posts: 20
|
04-05-2006 21:17
Ok, once again I cant seem to quite get it down. And since I cant find this on Slexchange I thought I would post here once again to see if anyone has it. I just need a simple door lock script for sliding double doors, with an allow list, sounds would be great but optional. Hope someone can help me again. 
|
|
Rodrick Harrington
Registered User
Join date: 9 Jul 2005
Posts: 150
|
04-05-2006 23:04
take those doors you got from SLEx . . . open each script (the controlling door and the non-controlling door scripts) change the open() function and remove all the rotation changing stuff. In it's place put the following. vector scale = llGetScale(); llSetPos(llGetPos() + (<0.0, scale.y/2, 0.0> * llGetRot());
for the close function the commands would be vector scale = llGetScale(); llSetPos(llGetPos() - (<0.0, scale.y/2, 0.0> * llGetRot());
now . . . test that let it open and close. If it's not moving the right direction (up/down or sideways, not along the rails) then instead of doing scale.y/2 try scale.x/2 in the x position and 0.0 in the y position above . . . ie just play around to find the right vector. or . . . if they swap positions . . . then the open and close functions are backwards just swap them. Basically you should be able to get the idea and play around. If you can't figure it out I will give you assistance once I can finally get in game (5-6 days).
|
|
Myoko Takashi
Registered User
Join date: 10 Feb 2006
Posts: 20
|
04-07-2006 17:33
wow ty a bunch for the help 
|
|
Rodrick Harrington
Registered User
Join date: 9 Jul 2005
Posts: 150
|
04-07-2006 23:41
From: Myoko Takashi wow ty a bunch for the help  I take it that's a "yup, got it to work"? 
|