X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=huffware%2Fhuffotronic_tools_n_testers_v6.1%2Fdie_on_demand_v0.3.lsl;fp=huffware%2Fhuffotronic_tools_n_testers_v6.1%2Fdie_on_demand_v0.3.lsl;h=0000000000000000000000000000000000000000;hb=cb9011b7dd78ac93d48a871a9fdda062c9181138;hp=b0d5a44a9697b161e282c298a60ccdbd84ec380c;hpb=ad0ce3f89fcb4e06393aa84e342c2745aef72da8;p=feisty_meow.git diff --git a/huffware/huffotronic_tools_n_testers_v6.1/die_on_demand_v0.3.lsl b/huffware/huffotronic_tools_n_testers_v6.1/die_on_demand_v0.3.lsl deleted file mode 100755 index b0d5a44a..00000000 --- a/huffware/huffotronic_tools_n_testers_v6.1/die_on_demand_v0.3.lsl +++ /dev/null @@ -1,34 +0,0 @@ - - -// huffware script: die on demand, by fred huffhines. -// -// a super simple script that merely makes an object subject to self-termination -// if it is told a secret phrase. -// -// this script is licensed by the GPL v3 which is documented at: http://www.gnu.org/licenses/gpl.html -// do not use it in objects without fully realizing you are implicitly accepting that license. -// - -////////////// -// API for the die on demand feature. saying the message below on the channel -// referenced will cause any listening object to zap itself out of the grid. -string DIE_ON_DEMAND_MESSAGE = "die-on-demand"; -integer DIE_ON_DEMAND_CHANNEL = 4826; -////////////// - -default -{ - state_entry() - { - llListen(DIE_ON_DEMAND_CHANNEL, "", NULL_KEY, "die-on-demand"); - } - - listen(integer channel, string name, key id, string message) { - if ( (channel == DIE_ON_DEMAND_CHANNEL) - && (llGetOwnerKey(id) == llGetOwnerKey(llGetKey())) - && (message == DIE_ON_DEMAND_MESSAGE) ) { - llWhisper(0, "removing object."); - llDie(); - } - } -}