Difference between revisions of "LlGetAttached"
Jump to navigation
Jump to search
Nonnux White (talk | contribs) m (corrected the example: runtime_permissions should be run_time_permissions) |
Asuka Neely (talk | contribs) m |
||
Line 1: | Line 1: | ||
{{LSL_Function | {{multi-lang}}{{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 |
Revision as of 09:20, 17 January 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
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(); } }