LlGetAttached
From Second Life Wiki
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Contents |
Summary
Function: integer llGetAttached( );| 224 | Function ID |
| 0.0 | Forced Delay |
| 10.0 | Energy |
Returns the attach_point (an integer) the object is attached to or zero if it is not attached.
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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(); } }
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.

