// www.lsleditor.org by Alphons van der Heijden (SL: Alphons Jano)
default
{
state_entry()
{
llSay(0, "Hello, Avatar!"
;}
on_rez(integer rezzed)
{
llSetPrimitiveParams([PRIM_PHYSICS, TRUE, PRIM_TEMP_ON_REZ, TRUE]);
llSleep(4.0);
llDie();
}
}
These forums are CLOSED. Please visit the new forums HERE
llDie() doesn't! |
|
|
Robins Hermano
Registered User
Join date: 20 Oct 2006
Posts: 18
|
02-03-2008 07:51
I have a very basic script - seemed that way anyway. I rez an object, wait a period of time and the delete the object. The problem is the llDie() is never triggered for some reason which I can figure out, hence this post. Here's the script, any help would be greatly appreciated.
// www.lsleditor.org by Alphons van der Heijden (SL: Alphons Jano) default { state_entry() { llSay(0, "Hello, Avatar!" ;} on_rez(integer rezzed) { llSetPrimitiveParams([PRIM_PHYSICS, TRUE, PRIM_TEMP_ON_REZ, TRUE]); llSleep(4.0); llDie(); } } |
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
02-03-2008 07:57
Works for me. Put script in object, take to inventory, rez from inventory, 4 secs later: *poof*.
|
|
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
|
02-03-2008 08:28
It wont work in LSLEditor as there is no prim to die.
Alphons is still working on a lot of the prim related functions. I do test 90% of my code in LSLEditor, but until you test it in world you wont know for sure. |
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
02-03-2008 08:52
It does approximate the actions in LSLEditor just fine.
After starting debug, push the on_rez button and watch the debug window, not the output window. It of course won't actually delete the script and remove the window in LSLEditor.EDIT: But it does work exactly as if you had pushed the Die button in debug, with all buttons being grayed out. " *** state_entry() *** on_rez(1) SetPrimitiveParams(3141) Sleep(4.000000) llDie() " _____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum |
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
02-03-2008 09:38
You're not attaching this object are you? llDie doesn't work with attachments.
_____________________
http://ordinalmalaprop.com/forum/ - visit Ordinal's Scripting Colloquium for scripting discussion with actual working BBCode!
http://ordinalmalaprop.com/engine/ - An Engine Fit For My Proceeding, my Aethernet Journal http://www.flickr.com/groups/slgriefbuild/ - Second Life Griefbuild Digest, pictures of horrible ad griefing and land spam, and the naming of names |
|
Tegg Bode
FrootLoop Roo Overlord
Join date: 12 Jan 2007
Posts: 5,707
|
02-03-2008 23:24
You're not attaching this object are you? llDie doesn't work with attachments. Hmm so you can't self delete attachments? _____________________
Level 38 Builder [Roo Clan]
Free Waterside & Roadside Vehicle Rez Platform, Desire (88, 17, 107) Avatars & Roadside Seaview shops and vendorspace for rent, $2.00/prim/week, Desire (175,48,107) |
|
Beezle Warburton
=o.O=
Join date: 10 Nov 2006
Posts: 1,169
|
02-03-2008 23:36
Hmm so you can't self delete attachments? Only auto-detach. llDetachFromAvatar() http://rpgstats.com/wiki/index.php?title=LlDetachFromAvatar |