Jump to content

Saving short-lived objects


DragonWhisperer
 Share

You are about to reply to a thread that has been inactive for 4646 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I want an object to rez another object that has a short lifespan, say, 1 second. My problem is that when editing the script within the object, the script runs upon saving it and the object disappears before I can take it into inventory. If I uncheck the "Running" box, the script won't run when the object rezzes.

How can I get around this so I can drag an auto-run script into the object?

Link to comment
Share on other sites

How about something on the lines of 

default{	on_rez(integer start_param)	{		if(start_param !=0){			llSetTimerEvent(1.0);		}			}	timer()	{		llDie();	}}

 The start parameter is 0 by default, so that won't run the timer unless you rez it from an object and give it non-0 start param as the last argument in llRezObject.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4646 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...