LlGetAttached
From Second Life Wiki
| Languages: |
English • Deutsch • Español • ελληνικά • Français • עברית • Italiano • 日本語 • 한국어 • Nederlands • Magyar • Norsk • Dansk • Svenska • Türkçe • Polski • Português • Русский • украї́нська • 中文(简体) • 中文(繁體) |
| Volunteer translated pages are linked in blue, Google translated pages are linked in grey. Learn how to provide volunteer translations. | |
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Tutorials |
Contents |
Summary
Function: integer llGetAttached( );| 224 | Function ID |
| 0.0 | Delay |
| 10.0 | Energy |
Returns an integer that is the attachment point the object is attached to or zero if not attached.
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Caveats
Important Issues
~ Search JIRA for related Bugs| | | SVC-580 [c] | The values for ATTACH_RPEC and ATTACH_LPEC are reversed (compiler bug). |
Examples
default { attach(key id) { if(id)//it's attached { if(llGetAttached() != ATTACH_LHAND) { llOwnerSay("Please attach me only to the left hand"); llRequestPermissions(id, PERMISSION_ATTACH); } } } run_time_permissions(integer a) { if(a & PERMISSION_ATTACH) llDetachFromAvatar(); } }
Deep Notes
Issues
~ Search JIRA for related Issues| | | SVC-580 [c] | The values for ATTACH_RPEC and ATTACH_LPEC are reversed (compiler bug). |
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.

