Difference between revisions of "LlDetachFromAvatar"

From Second Life Wiki
Jump to navigation Jump to search
Line 6: Line 6:
|return_text
|return_text
|spec
|spec
|caveats=There is no way to delete an attachment with a script or to drop it to the ground.
|caveats
|constants
|constants
|examples
|examples
Line 16: Line 16:
{{LSL DefineRow||{{LSLG|attach}}|}}
{{LSL DefineRow||{{LSLG|attach}}|}}
|also_articles
|also_articles
|notes
|notes=There is no way to delete an attachment with a script or to drop it to the ground.
|cat1=Attachment
|cat1=Attachment
|cat2
|cat2

Revision as of 20:38, 16 April 2007

Summary

Function: llDetachFromAvatar( );

Detach object from avatar.

To run this function the script must request the PERMISSION_ATTACH permission with llRequestPermissions and it must be granted by the owner. The detached object remains in the users inventory.

Caveats

Permissions
  • 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 than 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 except from inside the script (for example, with a new llRequestPermissions call) or the script is reset or deleted.
All Issues ~ Search JIRA for related Bugs

Examples

Notes

There is no way to delete an attachment with a script or to drop it to the ground.

See Also

Events

•  run_time_permissions Permission receiving event
•  attach

Functions

•  llGetPermissions Get the permissions granted
•  llGetPermissionsKey Get the agent who granted permissions
•  llRequestPermissions Request permissions
•  llAttachToAvatar
•  llGetAttached

Articles

•  Script permissions

Deep Notes

Search JIRA for related Issues

Signature

function void llDetachFromAvatar();