You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.
This shows you the differences between two versions of the page.
functions:llattachtoavatartemp [2015-01-10 17:11 SLT] sei created |
functions:llattachtoavatartemp [2015-08-06 19:55 SLT] (current) sei send, not region-say |
||
---|---|---|---|
Line 11: | Line 11: | ||
=== attachment_point === | === attachment_point === | ||
- | The attachment point to attach to. Zero (0) means the default attachment point for the object (if the object wasn't previously attached, it defaults to Right Hand). The following constants can also be used: | + | The attachment point to attach to. Zero (0) means the last attachment point the object was attached to (if the object wasn't previously attached, it defaults to Right Hand). The following constants can also be used: |
{{page>constants/attach/tpl}} | {{page>constants/attach/tpl}} | ||
Line 21: | Line 21: | ||
* An attached object can't be attached to a different attachment point; the function will silently fail. | * An attached object can't be attached to a different attachment point; the function will silently fail. | ||
* Permissions are a requisite; if the script doesn't request them, an error will be said (i.e. 20m range) in [[constants/DEBUG_CHANNEL]]: "Cannot find the agent to attach to." | * Permissions are a requisite; if the script doesn't request them, an error will be said (i.e. 20m range) in [[constants/DEBUG_CHANNEL]]: "Cannot find the agent to attach to." | ||
- | * If permissions were requested but not granted, it will region-say an error to the owner only in **DEBUG_CHANNEL**: "Script trying to attach to owner but PERMISSION_ATTACH permission not set!" (confusingly, this error is also shown if the permissions were requested to someone other than the owner). | + | * If permissions were requested but not granted, it will send an error to the owner only in **DEBUG_CHANNEL**: "Script trying to attach to owner but PERMISSION_ATTACH permission not set!" (confusingly, this error is also shown if the permissions were requested to someone other than the owner). Scripts can't hear this error. |
* The **PERMISSION_ATTACH** permission is revoked only when the object changes owner, when the granter responds to a new permission request from the same script that doesn't include it or responds by denying it, or when the script is reset. There's nothing the granter can do on his/her own to revoke them, if the script doesn't do another request. | * The **PERMISSION_ATTACH** permission is revoked only when the object changes owner, when the granter responds to a new permission request from the same script that doesn't include it or responds by denying it, or when the script is reset. There's nothing the granter can do on his/her own to revoke them, if the script doesn't do another request. | ||
* Note that since the permission is revoked when the object changes owner, and attaching it forces an owner change, when it's attached, permission needs to be requested again for detaching it. [[llGetAttached]] can be used to distinguish whether the permission request is for attaching or for detaching. See [[#Complete examples]] below for an example. | * Note that since the permission is revoked when the object changes owner, and attaching it forces an owner change, when it's attached, permission needs to be requested again for detaching it. [[llGetAttached]] can be used to distinguish whether the permission request is for attaching or for detaching. See [[#Complete examples]] below for an example. |