Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

temp_on_rez time limit?

Merry Calliope
The 13th Rabbit
Join date: 24 Mar 2005
Posts: 89
12-12-2006 02:20
Hello!

I'm not sure if this is a building or scripting question so please bear with me. ^_^;

Is it possible to change the length of time a Temp On Rez object lives? In this case I want to shorten the time.

TIA~!
Merry
Blake Sachs
Gasoline, Baby!
Join date: 15 Sep 2005
Posts: 122
12-12-2006 08:16
As far as I know the lifetime of temporary objects is always random and around 60 seconds...
if you want to get rid of them faster, use a script with a timer that triggers the llDie function :)
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
12-12-2006 18:49
Right, here's a script for you:

CODE

float time_to_live = 10.0; // seconds to live

default {
on_rez(integer start_param) {
llSetTimerEvent(time_to_live);
}
timer() {
llDie();
}
}
Merry Calliope
The 13th Rabbit
Join date: 24 Mar 2005
Posts: 89
12-12-2006 20:07
Thank you~! I spent my lunch hour going through the LSL manual and some examples I'd printed out (I'm computerless at lunch) trying to figure out how to do this. I was close...but not close enough. This helps immensely! Thank you! ^_^