|
|
| (4 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| == Dans open source scripts ==
| | {{LSL Header}} |
| {{LSL Header|[http://terminalproxy.com/]}} | |
| | |
| Hello there! I'm Dantia Gothly
| |
| | |
| Scripter,Sculpter,Texture artist.
| |
| | |
| creater of TopHat Viewer link->(http://terminalproxy.com/)
| |
| | |
| I believe you can do just about everything in 1 script
| |
| | |
| but that also depends on what it is your doing. For the most part it can be.
| |
| | |
| | |
| quote:"dose it work? Yes it do."
| |
| | |
| ..........................................................................................................................
| |
| | |
| Here is a nonphysical train script
| |
| <lsl>
| |
| http://www.youtube.com/watch?v=UiInBOVHpO8&feature=relmfu
| |
| </lsl>
| |
| | |
| This is a good way to do Random llRezObject.
| |
| | |
| <lsl>
| |
| integer i;
| |
| | |
| DGRandomRez(float number)
| |
| {
| |
| for(i=(integer)llFrand(number);i>0;i--)
| |
| {
| |
| llRezObject("Object", llGetPos() + <0.0,0.0,1.0>, <llFrand(3.0),llFrand(3.0),llFrand(3.0)>, <0.0,0.0,llFrand(360),1.0>, 0);
| |
| }
| |
| }
| |
| | |
| default
| |
| {
| |
| state_entry()
| |
| {
| |
| DGRandomRez(5);//This will rez an object at random 1-5.
| |
| }
| |
| }
| |
| | |
| </lsl>
| |
| Sound looper for when your walking.
| |
| <lsl>
| |
| float Timer = 1;
| |
| integer Sound = 1;//what sound to play.
| |
| float Vol = 0.8;
| |
| integer GLL;
| |
| list Sounds = ["","","","",""];//List of sounds.
| |
| default
| |
| {
| |
| state_entry()
| |
| {
| |
| GLL = llGetListLength(Sounds);
| |
| llSetTimerEvent(Timer);
| |
| integer Q;
| |
|
| |
| for(Q=0;Q<GLL;Q++)//Preload sounds!
| |
| {
| |
| llPreloadSound((string)llList2Key(Sounds,Q));
| |
| }
| |
| }
| |
| timer()
| |
| {
| |
| if((llGetAgentInfo(llGetOwner()) & AGENT_WALKING))
| |
| {
| |
| llLoopSound((string)llList2Key(Sounds,Sound),Vol);//single sound;
| |
| //or you can use this for random sounds.
| |
| llLoopSound((string)llList2Key(Sounds,(integer)llFrand(GLL)),Vol);//Random sound.
| |
| }
| |
| else
| |
| {
| |
| llStopSound();
| |
| }
| |
| }
| |
| }
| |
| </lsl>
| |
|
| |
|
| | Hello, I am Dantia Gothly |
|
| |
|
| | I am a content creator and owner of Purgatory. |
|
| |
|
|
| |
|
| Line 88: |
Line 11: |
| |Builder=* | | |Builder=* |
| |Scripter=* | | |Scripter=* |
| |Terraformer= | | |Terraformer=* |
| |}} | | |}} |
| {{ISO 639-3/cat-speaking|eng}} | | {{ISO 639-3/cat-speaking|eng}} |
Hello, I am Dantia Gothly
I am a content creator and owner of Purgatory.