Search the Community
Showing results for tags 'doors'.
Found 2 results
I've run into what I think is a unique problem with trying to add doors to my build. In my build, I have two doors along the same wall (but the door openings are in separate prims), facing in the same direction, and opening with the same rotation. I have tried a couple of different scripts for them, but settled on a hinged door script that works very well, ... Except! ... One door at the western end of the build performs smoothly, while the one located at the eastern end of the wall will not function at all. I have tried replacing the door, the door scripting, the type of door scripting, swapping the doors, rotating the hinge and / or the door, .... and nothing works. So, I am now considering there must be a conflict or a lag caused by other nearby scripts. Within 5 meters of the door I have a pool with an animated water texture (I have removed the animation scripts in hopes of cutting down on lag, and the water animation still functions perfectly). Also, at the far end of that pool, I have an infinity pool with a small water fall with an animated water texture and particle scripts at the bottom of the waterfall. (Scripting from those items have also been removed, and everything still functions fine.) My problem is in getting that second door script to function. When I go to click on the door, the hand touch cursor appears to prompt the event, but there is no movement. There are no notifications via popups or local chat messages that give me clues as to why this script is not functioning. I have looked at my lag meter and everything is within norms. I have also taken a look at the Statistics Bar and the Scene Load Statistics to see if anything seemed out of the the norms there as well, but I can't see anything that would raise my suspicions. Perhaps the oddest thing is that a third door I have on this build, around the corner from the initial non functioning door , will not function either. Yet, the first door works perfectly This door and door opening are constructed in the same manner as the first and second doors, being situated within a separate prim. I'm at a loss as to what is causing this. I have looked it over quite thoroughly, but still nothing comes to my mind that would stop these doors / scripts from working. It's probably something simple I am not aware of, yet has me totally stymied and has stopped up the scripting. Any help or suggestions you could give me where to look to resolve this would be greatly appreciated.
This is my first effort at SL scripting. I found a script for opening and closing a door and would like to modify it to open/close two doors at the same time when one of them is touched. I was thinking along the lines of linking the two doors and including two "rotate" statements in the script, for the root prim and the other prim. I see the following code rotates a single door: llSetLinkPrimitiveParamsFast( LINK_THIS, [ PRIM_ROT_LOCAL, llEuler2Rot(<0, 0, LRot> * DEG_TO_RAD) * llGetLocalRot() ] ); I have played around with the various constants and function calls in that code, but documentation seems sparse and the best result I can get is the two doors rotating together around the root prim's axis. I'm sure there must be a simple solution, so any help would be appreciated. Thanks.