Difference between revisions of "LlGetAttached"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
{{LSL_Function | {{#var:constants_nb|{{LSL_Constants_Attachment}}}}{{LSL_Function | ||
|func_id=224|func_sleep=0.0|func_energy=10.0 | |func_id=224|func_sleep=0.0|func_energy=10.0 | ||
|func=llGetAttached|return_type=integer | |func=llGetAttached|return_type=integer | ||
Line 7: | Line 7: | ||
|spec | |spec | ||
|caveats | |caveats | ||
|constants= | |constants= | ||
|examples= | |examples= | ||
<lsl>default | <lsl>default |
Revision as of 19:38, 25 October 2008
Note: Constants in italic require a viewer compatible with the Project Bento skeleton. |
|
|
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 not attached.
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>