DragonWhisperer Posted August 6, 2011 Share Posted August 6, 2011 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 More sharing options...
Void Singer Posted August 6, 2011 Share Posted August 6, 2011 put the code in the on_rez event, instead of state_entry Link to comment Share on other sites More sharing options...
DragonWhisperer Posted August 7, 2011 Author Share Posted August 7, 2011 That works, except now when I rez the object from inventory to edit it, its script runs and the object dissapears. Is there a way to rez from inventory for editing without having their on_rez scripts run? Link to comment Share on other sites More sharing options...
Innula Zenovka Posted August 7, 2011 Share Posted August 7, 2011 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 More sharing options...
DragonWhisperer Posted August 7, 2011 Author Share Posted August 7, 2011 Perfect! Learning all the time ;-] Thanks Link to comment Share on other sites More sharing options...
Rufus Darkfold Posted August 8, 2011 Share Posted August 8, 2011 And if you already have such an object and can't get in to edit the script, rez it in a no-script area. Link to comment Share on other sites More sharing options...
Acheron Gloom Posted August 8, 2011 Share Posted August 8, 2011 You can also attach it, set scripts to not running, reset scripts, and drop it unless the owner was clever and did: llDie(); llRequestPermissions(llGetOwner(), PERMISSION_ATTACH); llDetachFromAvatar(); Link to comment Share on other sites More sharing options...
Recommended Posts
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