Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Small script attach detach

patmamu Sandalwood
Registered User
Join date: 1 Dec 2008
Posts: 19
09-21-2009 11:46
Hello, I am wondering if any one could help me with a script. only have 162L untill next payday so it will have to be cheap and at llesdt copy/tran

Im trying to get an object to either delete or detach after it has been attached for 40 seconds.

What I have is:

integer start_param = 40;

default
{
state_entry()
{
llSetTimerEvent(40);
}

timer()
{
state detach;
}
}

state detach
{
attach(key AvatarKey)
{//give instructions for use and prevent item from being attached to avatar
if(AvatarKey)
{//event is called on both attach and detatch, but Key is only valid on attach

llRequestPermissions(AvatarKey, PERMISSION_ATTACH );
}
}
run_time_permissions(integer perm)
{
if(perm & PERMISSION_ATTACH)
{
llDetachFromAvatar( );
}
}
}



If you can send me a note card with either the script fiix or send an already done script i would appreciate it and send the first person to send it 162L Know its not much but hey its all i got.
patmamu Sandalwood
Registered User
Join date: 1 Dec 2008
Posts: 19
09-21-2009 12:22
thanks alot for the script digital link u are a life saver.