Difference between revisions of "MLPV2 Rez Prop Independent of Pose Item"
Jump to navigation
Jump to search
Line 32: | Line 32: | ||
if ( (command == "DeRez") && ( object == llGetObjectName() ) ) { | if ( (command == "DeRez") && ( object == llGetObjectName() ) ) ( (command == "DeRezAll") ) { | ||
llDie(); | llDie(); | ||
} | } |
Revision as of 19:53, 22 February 2014
- Back to MLPV2_Addons
Companion script to ~prop permanent rezzer (MASTER) script
<lsl> //~prop permanent derezzer //
//put this script in a prop that you have rezzed via the ~prop permanent rezzer (MASTER) script in MLP //when the ~prop permanent rezzer script in MLP hears a button command to derez, it informs this rezzed object of that command to derez //so this rezzed object will go away //version 1.2 by Chaz Longstaff 2014-02-09
integer ch; integer ListenHandle;
default {
on_rez(integer channel) { ch = channel; ListenHandle = llListen(ch,"",NULL_KEY,""); } listen(integer channel, string name, key object, string str) { list TempList2 = llParseStringKeepNulls(str,["##"],[]); string command = llStringTrim(llList2String(TempList2, 0),STRING_TRIM); string object = llStringTrim(llList2String(TempList2, 1),STRING_TRIM); if ( (command == "DeRez") && ( object == llGetObjectName() ) ) ( (command == "DeRezAll") ) { llDie(); } }
} </lsl>