default { touch_start(integer total_number) { rotation rot = llGetLocalRot(); string Z = (string)rot.z; string S = (string)rot.s; llSay( 0, "Z=" + Z + " S=" + S); if(rot.z == 0) { rot.z = 0.707107;//will depend on which way you rotate your door rot.s = 0.707107;//will depend on which way you rotate your door } else { rot.z = 0; rot.s = 0; } llSetLocalRot(); } } //code not indented due to youtube character limit
this is a great tutorial! for those who don't understand it, you need more patients and practice! you probably don't even know what you're doing in the first place
ok. can you just like type out that script down there? i mean come on. and i cant even find the video on slbuilding dotcom, so dont even tell me to download a better quality video from there.
Wow if I knew programming language that would have been really useful. Please just tell me where to get a door script that actually works and works when you link the door to the house. Hell man, how about writing one and making it available for us builders who are not scripters?
Never seen any being built in Second Life, pretty amazing. I wasn't sure if you actually in the game at the time or if you were in an external editor. I was quite fascinated by the script editor, looked like Java or Visual Basic. Can't believe it's that easy to create worlds. Great work. Keep 'em coming' :)
Not really if you're using this method, which is a bit of a simple way of performing an offset rotation but it easier to understand than the alternative.
The alternative - if you're interested - involves multiplying the offset from centre of the door by the rotation amount then adding the centre position to the result, and passing this value as a parameter to the llSetPos command.
There's an example on the second life forums, try searching for "offset rotations"
Comment removed
ecypert 4 months ago
Comment removed
ecypert 4 months ago
There is a mistake in the script shown. it should be llGetLocalRot() not llSetLocalRot(). Changing this made it work for me.
MrHuskaj 7 months ago
I've trying it but when i do it for postion it goes away
rockey8004 7 months ago
ctrl key and mousewheel or + key on keyboard to make video larger to view script
march21101 8 months ago
This has been flagged as spam show
HeavyAmp 9 months ago
i cant read the script and the website is unaviable
Wiiuser5412 1 year ago
can't you just put it in a comment, becase your website is down. it is close to unreadable, and it doesn't work such as i can see.
APlant641 1 year ago
this is a great tutorial! for those who don't understand it, you need more patients and practice! you probably don't even know what you're doing in the first place
redplasticrobot 1 year ago
dude i dont get u can u add me so u can tell me in personal my name is nickkillian421 whitesong
nickkillian4211 1 year ago
not bad for someone trying to understand the basics so thanks for the upload ^.^
Stafare 1 year ago
script doesnt work :(
orangeflashmedia 1 year ago
ok. can you just like type out that script down there? i mean come on. and i cant even find the video on slbuilding dotcom, so dont even tell me to download a better quality video from there.
vidmanbry1998 1 year ago
Wow if I knew programming language that would have been really useful. Please just tell me where to get a door script that actually works and works when you link the door to the house. Hell man, how about writing one and making it available for us builders who are not scripters?
MistwalkerMedia 2 years ago
i want a 1 prim door without a hinge
queenheather87 2 years ago
I can't turn the door now, nor move my house because the doors open in diagonal. Fucking scripting. can't they just add a "door" option?!?
TheMudDragon 2 years ago
And a carve option instead of having to learn how to model and waste prims and shit.
Ethaninja 2 years ago
what did you writ on the script??
traxxgrine 2 years ago
wow...this did not help not one single bit
niteowl84 2 years ago
that did t help at all i still dont know what the script is
rangersfan1011 2 years ago
this is all a blurr, i need to see what you are writing in the script
tardis1996 2 years ago
very nice
DraithLuvzCuddlez 2 years ago
I posted a video reply with the code from this script. Check it out.
OscarBlackEagle 3 years ago
Looks useful -- but it needed a close-up of the script so it was readable.
Grandmaster1 3 years ago
Never seen any being built in Second Life, pretty amazing. I wasn't sure if you actually in the game at the time or if you were in an external editor. I was quite fascinated by the script editor, looked like Java or Visual Basic. Can't believe it's that easy to create worlds. Great work. Keep 'em coming' :)
Pablos544 3 years ago
What was the script? I couldnt get it.
folkloricjungle 3 years ago
Thank you, Ian! You're a lifesaver!
Brend4 3 years ago
yeah what if your door has more than one prim? I have a door made up of about 7 Prims how do you get that to work or can you?
mermer3m 4 years ago
This has been flagged as spam show
Nice Video, check out the website link in my profile. I have my naked pics and video which youtube doesn't allow, where I'm being naughty
HotCaliGirl1765 4 years ago
what do I put if I want a script for a gun?
eddymdr 4 years ago
damn this is cool I am going to check out more lol.
MattMystrieo 4 years ago
Take a look at the resources section on dub dub dub dot slbuilding dot com
Obviously replacing "dub" with "w" and "dot" with "." in the URL. Youtube doesn't seem to let you post URLs in the comments of videos
IanMonstre 4 years ago
Ive been looking up this game it looks great! cna u give me some ideas on how hard is it and how do u learn all of this scripting? and making stuff?
SkaterEs05 4 years ago
Not really if you're using this method, which is a bit of a simple way of performing an offset rotation but it easier to understand than the alternative.
The alternative - if you're interested - involves multiplying the offset from centre of the door by the rotation amount then adding the centre position to the result, and passing this value as a parameter to the llSetPos command.
There's an example on the second life forums, try searching for "offset rotations"
IanMonstre 4 years ago
Can you link the doorway and other objects to the door/hinge in a way so that the open/close function still works?
SomebodyYouDoNotKnow 4 years ago
These tuts are fantastic- please keep them coming
weaverz1 5 years ago
Download a better quality version of this video plus source code from slbuilding dotcom
IanMonstre 5 years ago