|
Dragon Muir
Registered User
Join date: 25 Jun 2005
Posts: 60
|
11-10-2007 00:05
There are a lot of talented and helpful SL players, but I don’t know any scripters personally in SL. Anyone that is willing to help is greatly appreciated and I am sure others that are looking for simple working script pieces to help further their understanding and play with will also enjoy any example given. Purely cosmetic non-push special effects are something I would like to be able to create, but scripting is a requirement if anyone wants to make some cool effects. What would help me out a lot is a simple script that can make an object turn into a physical object and then lldie when it touches the ground, or simply a script that makes an object lldie when it touches or comes close to the ground, since you could select the physical setting before having it spawned. I will enable phantom and temp on rez, because it would only be for cosmetic effect. Not meant to push anyone or create trash. ^.=.^ PS: If a scripter is willing to be my friend and help me on some occasions would be awesome. I doubt I would ever ask anything complex, because I like simplistic pieces of scripts that I can learn from and play with. I rarely craft, so it would not be often. I am a pretty nice dragon. 
|
|
Debbie Trilling
Our Lady of Peenemünde
Join date: 17 Oct 2006
Posts: 434
|
11-10-2007 01:18
This should point you in the right direction... 1) On rez, turns object physical, phantom and temporary 2) On rez, sets a 10 second timer 3) Object will die 10 seconds after rez OR two seconds after hitting the ground (not the floor), whichever is the first 3) Object will die on any touch
default { state_entry() { llSetPrimitiveParams([PRIM_TEMP_ON_REZ,TRUE,PRIM_PHYSICS, TRUE, PRIM_PHANTOM, TRUE]); llSetTimerEvent(10.0); } touch_start(integer Touches) { llDie(); }
land_collision_start(vector x) { llSetTimerEvent(2.0); } timer() { llDie(); } }
BTW: use the LSL Wikis liberally! http://rpgstats.com/wiki/index.php?title=Main_Page
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
11-10-2007 05:46
From: Dragon Muir PS: If a scripter is willing to be my friend and help me on some occasions would be awesome. I doubt I would ever ask anything complex, because I like simplistic pieces of scripts that I can learn from and play with. I rarely craft, so it would not be often. I am a pretty nice dragon.  Here in the Scripting Tips forum is the best place to be and post questions. Quite a few of us check here regularly and are ready to answer questions. Plus each of us has different strengths and styles so the whole gamut of questions is covered. Don't be shy and ask away whenever you need help.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Dragon Muir
Registered User
Join date: 25 Jun 2005
Posts: 60
|
11-10-2007 12:38
Thank you Debbie Trilling for the example script you created for me and others novice scripters to study and learn from. The script you gave is simple, clear, and to the point. It is perfect and will be very helpful in further understanding these functions in a controlled manner without other functions or complex processes making it difficult to grasp how it works.
If Debbie or anyone with physics understand could answer something with this example. It is more a technical question then scripting question. Thankfully this script is simple enough to easily understand what functions are needed and what they are meant to do at an elementary level. I have a two part question which is, is it risky to wait two second after a “collision”, and will it be dangerous to a sim to have it wait two seconds compared to lldie after the collision? The last thing I want to do is put a sim through any stress or worst of all crash one. I know physics are known for crashing Sims.
I understand or think Debbie included that to give the user of the script more control and options to play with, which I am very grateful for Debbie’s foresight to include it.
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
11-10-2007 12:46
llDie immediately or an hour later are equivalent when it comes to demands on a simulator.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|