This commit is contained in:
Fred Beckhusen
2015-08-07 15:34:30 -05:00
parent ce47ec2f3e
commit fde850293c
8080 changed files with 0 additions and 2443112 deletions

View File

@@ -1,3 +0,0 @@
<Solution name="Auto_attach">
<Project name="Auto_attach" path="Auto_attach\Auto_attach.prj" active="true"/>
</Solution>

View File

@@ -1,6 +0,0 @@
<Project name="Auto_attach" guid="D6E1A2F8-6C00-1014-B904-200204C60A89">
<Object name="Object" guid="D6E1A3E0-6C00-1014-B904-200204C60A89">
<Script name="Auto_attach_1.lsl" guid="D6E1BCD5-6C00-1014-B904-200204C60A89">
</Script>
</Object>
</Project>

View File

@@ -1,45 +0,0 @@
// :CATEGORY:HUD
// :NAME:Auto_attach
// :AUTHOR:Anonymous
// :CREATED:2010-01-10 05:20:56.000
// :EDITED:2013-09-18 15:38:48
// :ID:61
// :NUM:88
// :REV:1.0
// :WORLD:Second Life
// :DESCRIPTION:
// Auto attach.lsl
// :CODE:
//-- rez object on ground, drop in this script, it will request permissions to attach,
//-- and then attach to the bottomif permission is granted. if permission is denied,
//-- then the script complains.
default
{
state_entry()
{
llRequestPermissions( llGetOwner(), PERMISSION_ATTACH );
}
run_time_permissions( integer vBitPermissions )
{
if (PERMISSION_ATTACH & vBitPermissions)
{
llAttachToAvatar( ATTACH_HUD_BOTTOM );
}
else
{
llOwnerSay( "You must attach this as a HUD" );
}
}
on_rez(integer rez)
{
if(!llGetAttached())
{ //reset the script if it's not attached.
llResetScript();
}
}
}// END //