Attach โ
๐
Fires when: The HUD or item is attached to the avatar (also when you log in wearing it).
Requires [add-on] - Events - 1Click inside the object where the event runs.
When it fires โ
Every time the object is attached: when the wearer adds it, and again at each login while wearing it (Second Life re-attaches everything at login).
Ideal use โ
Startup: set the initial state, apply the default look, greet the wearer, start an ambient sound.
Examples โ
- Message (Owner): "HUD ready. Click ? for help."
- Blinn-Phong on the shirt with the default texture, so the outfit always starts in a known state.
- Change Variable
$state = OFFto reset a toggle. - Animation Start for a wearable that should animate as soon as it is worn.
Notes โ
- Created automatically in every new project; it is empty until you add actions.
- It also fires on login, so avoid actions that are annoying when repeated every day (loud sounds, long messages).
- The Detach event is the natural partner for cleanup.