Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Exploding Objects Exploding_object  

Exploding_object

Introduction:

Making things blow ...

Category: Exploding Objects
By : anonymous
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Exploding_object
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Exploding_object_1.lsl
1 integer CHANNEL = 7;
2 string COMMAND = "collapse";
3 integer OWNER_ONLY = TRUE;
4
5 // Exploding Objects script, by Dale Innis
6 // Do with this what you will, no rights reserved
7 // See https://wiki.secondlife.com/wiki/ExplodingObjects for instructions and notes
8
9 integer lh = 0;
10
11 init() {
13 key who = NULL_KEY;
14 if(OWNER_ONLY) who = llGetOwner();
15 lh = llListen(CHANNEL,"",who,COMMAND);
16 llOwnerSay("To cause collapse, say '"+COMMAND+"' on channel "+(string)CHANNEL);
18 }
19
20 default {
21 // usual faffing about
22 state_entry() {
23 init();
24 }
25 on_rez(integer x) {
27 }
28 changed(integer change) {
29 if(change & CHANGED_OWNER) llResetScript();
30 }
31 // the part that actually does something interesting
32 listen(integer c,string name,key id,string msg) {
36 }
37 // faffing about with permissions
39 if(!(perms & PERMISSION_CHANGE_LINKS)) {
40 llOwnerSay("Well, the collapsing stuff isn't going to work, then!");
41 }
42 }
43 }
44

Back to the Best Free Tools in Second Life and OpenSim.