Difference between revisions of "LlGetAttached"
Jump to navigation
Jump to search
m |
m |
||
Line 4: | Line 4: | ||
|func_footnote | |func_footnote | ||
|func_desc | |func_desc | ||
|return_text=that is the {{LSLGC|Parameters/attach_point|attachment point}} the object is attached to or {{HoverText|zero|0}} if not attached. | |return_text=that is the {{LSLGC|Parameters/attach_point|attachment point}} the object is attached to or {{HoverText|zero|0}} if it is not attached. | ||
|spec | |spec | ||
|caveats | |caveats |
Revision as of 10:10, 7 August 2012
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 attachment point the object is attached to or zero if it is 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"); llRequestPermissions(id, PERMISSION_ATTACH); } } } run_time_permissions(integer a) { if(a & PERMISSION_ATTACH) llDetachFromAvatar(); }}</lsl>