From Second Life Wiki
DetachFromAvatar
llDetachFromAvatar
Description
Function: llDetachFromAvatar( );
Detach object from avatar.
Requires the PERMISSION_ATTACH permission, granted by the owner, to run.
The detached object remains in the user's inventory.
Caveats
- Do not depend upon the auto-grant status of permissions. Always use the run_time_permissions event.
- If the script lacks the permission PERMISSION_ATTACH, the script will shout an error on DEBUG_CHANNEL and the operation fails (but the script continues to run).
- If PERMISSION_ATTACH is granted by anyone other then the owner then when the function is called an error will be shouted on DEBUG_CHANNEL.
- Once the PERMISSION_ATTACH permission is granted there is no way to revoke it. The script will only loose the permission if it is reset or the object derezzed (deleted, detached, or taken).
Notes
There is no way to delete an attachment with a script or to drop it to the ground.
See Also
Events
Functions
Articles