Difference between revisions of "LlGetAttached"
Jump to navigation
Jump to search
Gally Young (talk | contribs) m (fixe) |
Void Singer (talk | contribs) m (formatted example) |
||
Line 9: | Line 9: | ||
|constants={{LSL_Constants_Attachment}} | |constants={{LSL_Constants_Attachment}} | ||
|examples= | |examples= | ||
< | <lsl> | ||
default | default | ||
{ | { | ||
Line 29: | Line 29: | ||
} | } | ||
} | } | ||
</ | </lsl> | ||
|helpers | |helpers | ||
|also_functions={{LSL DefineRow||[[llAttachToAvatar]]}} | |also_functions={{LSL DefineRow||[[llAttachToAvatar]]}} |
Revision as of 16:11, 18 February 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llGetAttached( );224 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns an integer that is the object attachment point or zero if not attached.
Note: Constants in italic require a viewer compatible with the Project Bento skeleton. |
|
|
Caveats
Examples
<lsl> default {
attach(key id) { if(id)//it's attached { if(llGetAttached() != ATTACH_LHAND) { llOwnerSay("Please attach me only to the left hand"); llReqeustPermissions(id, PERMISSION_ATTACH); } } } run_time_permissions(integer a) { if(a & PERMISSION_ATTACH) llDetachFromAvatar(); }
}
</lsl>