Self-Destruction: Difference between revisions
Jump to navigation
Jump to search
Huney Jewell (talk | contribs) m It's an example, not really a script |
m lsl code tagging |
||
| Line 3: | Line 3: | ||
Change the number in llSetTimerEvent('''30.0''') to set the time, in seconds, that it will take for the object to disappear. | Change the number in llSetTimerEvent('''30.0''') to set the time, in seconds, that it will take for the object to disappear. | ||
==Script== | ==Script== | ||
< | <lsl> | ||
// Davada Gallant (John Girard), WWIIOLers | |||
// 30-second self destructor | // 30-second self destructor | ||
| Line 19: | Line 20: | ||
llDie(); | llDie(); | ||
} | } | ||
}</ | }</lsl> | ||
{{LSLC|Examples}} | {{LSLC|Examples}} | ||
Revision as of 15:27, 30 March 2008
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Change the number in llSetTimerEvent(30.0) to set the time, in seconds, that it will take for the object to disappear.
Script
<lsl> // Davada Gallant (John Girard), WWIIOLers // 30-second self destructor
default {
state_entry()
{
//upon creation, immediately start the timer
llSetTimerEvent(30.0);
}
//once the timer ticks off, kill the object
timer()
{
llDie();
}
}</lsl>