Attach
From Second Life Wiki
| LSL Portal | | | Functions | | | Events | | | Types | | | Operators | | | Constants | | | Flow Control | | | Script Library | | | Tutorials |
ExamplesThe following is a simplified example of the attach event. As explained above the variable id will be the key of the avatar the scripted object is attached to otherwise it will take on the value of NULL_KEY. The conditional if statement is used to determine if the value of the variable id. default { attach(key id) { if(id)//tests if it is a valid key and not NULL_KEY { llSay(PUBLIC_CHANNEL,"I have been attached!"); } else { llSay(PUBLIC_CHANNEL,"I have been detached!"); } } } |

