Difference between revisions of "User:ANSI Soderstrom/Where i come from"
Jump to navigation
Jump to search
(Created page with '<lsl> // Where i come from ??? // (C) 02/2010 by ANSI Soderstrom // Rezz me from a Object with a integer > 0 integer DEBUG = TRUE; integer DEFAULTSTATE; default { state_ent...') |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Leave a comment == | |||
* [[User_talk:{{PAGENAME}}|My User Talk about this Page]] | |||
== Where i come from ??? == | |||
<lsl> | <lsl> | ||
// Where i come from ??? | // Where i come from ??? | ||
Line 12: | Line 17: | ||
llWhisper(0,"I am already an in-world living object (ScriptReset or ObjectCopy)"); | llWhisper(0,"I am already an in-world living object (ScriptReset or ObjectCopy)"); | ||
// Your Code here | // Your Code here | ||
return; | |||
} | } | ||
DEFAULTSTATE=TRUE; | DEFAULTSTATE=TRUE; | ||
Line 22: | Line 29: | ||
if(!DEFAULTSTATE) { | if(!DEFAULTSTATE) { | ||
// Your Code here | // Your Code here | ||
return; | |||
} | } | ||
} | } | ||
Line 30: | Line 39: | ||
if(DEFAULTSTATE) { | if(DEFAULTSTATE) { | ||
// Your Code here | // Your Code here | ||
return; | |||
} | } | ||
} | } |
Latest revision as of 05:51, 8 April 2010
Leave a comment
Where i come from ???
<lsl> // Where i come from ??? // (C) 02/2010 by ANSI Soderstrom // Rezz me from a Object with a integer > 0
integer DEBUG = TRUE; integer DEFAULTSTATE;
default {
state_entry() { if(DEBUG && !DEFAULTSTATE) { llWhisper(0,"I am already an in-world living object (ScriptReset or ObjectCopy)"); // Your Code here
return; } DEFAULTSTATE=TRUE; state RezFromInventory; }
}
state RezFromObject {
state_entry() { if(!DEFAULTSTATE) { // Your Code here
return; } }
}
state RezFromInventory {
state_entry() { if(DEFAULTSTATE) { // Your Code here
return; } } on_rez(integer i) { DEFAULTSTATE=FALSE; if(i) { if(DEBUG) { llWhisper(0,"Rezzed from Object"); } state RezFromObject; } else { if(DEBUG) { llWhisper(0,"Rezzed from Inventory"); } state RezFromInventory; } }
} </lsl>