These forums are CLOSED. Please visit the new forums HERE
Requesting delete script "I have lost all faith in SL" |
|
|
Valadimire Dougall
Registered User
Join date: 24 Feb 2005
Posts: 28
|
10-27-2005 15:32
Ok, I had a bombing system and I thought I'd incorporate it into making a vending machine (Works great) BUT, it spews out cans of propaganda for my friends group (Xero). Naturally...I have gotten a complaint saying there are cans everywhere now (I set up the machine once for 5 minutes and someone just starting clicking a ton on it and actually jammed it O.o) I made the cans temporary on rez now, how does that work? Or, more convieniently, is there a script to make an object delete after a certain time? I'd make one myself, but I'm only gifted in building. :\
|
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
10-27-2005 15:48
llDie
(That's the function call for self-delete...not a comment toward you) _____________________
--AeonVox--
Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music. |
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
10-27-2005 15:52
I assume you don't want to use "temp on rez" because you want to control the sleep time...
Simplest possible script to have an object sleep for a variable number of seconds when rezzed by another object. You put this script inthe object before you put the object in the inventory of the vendor. Have the rezzing object call "llrezObject("Object", pos, vel, rot, 120);" to have the object die after 2 minutes... CODE
|
|
Valadimire Dougall
Registered User
Join date: 24 Feb 2005
Posts: 28
|
10-27-2005 16:01
:\ I tried to do this...but I put the script in the object, and I have no idea on what to do with the instructions on the last bit of text XP
|
|
Gaz Hornpipe
Registered User
Join date: 29 Sep 2005
Posts: 36
|
10-28-2005 05:42
ok obviously the llRezObject(obj,pos,vel,rot,death_time); goes into the vending machine to rez the cans.
CODE
CODE
Hope that makes a little more "practical" sense for you. |
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
10-28-2005 14:24
I'd suggest llRezObject(object,llGetPos(),ZERO_VECTOR,ZERO_ROTATION,death_time). You're rezzing everything at the corner of the sim...
![]() |