Difference between revisions of "LlGetAttached"
Jump to navigation
Jump to search
m |
m |
||
Line 31: | Line 31: | ||
|also_functions={{LSL DefineRow||[[llAttachToAvatar]]}} | |also_functions={{LSL DefineRow||[[llAttachToAvatar]]}} | ||
{{LSL DefineRow||[[llDetachFromAvatar]]}} | {{LSL DefineRow||[[llDetachFromAvatar]]}} | ||
{{LSL DefineRow||[[llGetObjectDetails]]|[[OBJECT_ATTACHED_POINT]]}} | |||
|also_events={{LSL DefineRow||[[attach]]}} | |also_events={{LSL DefineRow||[[attach]]}} | ||
|also_tests | |also_tests |
Revision as of 16:20, 3 October 2013
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 the attach_point (an integer) 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>
See Also
Events
• | attach |
Functions
• | llAttachToAvatar | |||
• | llDetachFromAvatar | |||
• | llGetObjectDetails | – | OBJECT_ATTACHED_POINT |