Enable Programmatic Control of Avatar Attachments and Worn Items Using LSL
closed
Brozier Rizzler
The current capabilities of Linden Scripting Language (LSL) allow limited interaction with avatars, such as temporary attachments. However, there is no way to programmatically add or remove items from an avatar's worn components, outside of the manual processes performed by the user. This proposed feature would expand LSL to allow script-based control over an avatar's inventory, enabling dynamic and context-sensitive attachment or removal of objects.
Proposed Functionality:
- Add new LSL functions to allow adding or removing items from an avatar's outfit or attachments. For example:
llAttachItem(string itemUUID, integer attachPoint)
llDetachItem(string itemUUID)
llWearItem(string itemUUID)
llUnwearItem(string itemUUID)
- Items involved must already exist in the user's inventory, ensuring that permissions are respected. The user retains full control by granting or revoking a script's permissions.
- The functions would respect existing attachment point and inventory restrictions, ensuring that no item is attached to conflicting points or worn beyond standard stacking limits.
- Functions would only work for the avatar running the script or interacting with the scripted object, maintaining privacy and security.
Use Cases:
- Dynamic Context-Based Customisation: Automatically add or remove attachments or clothing items based on the avatar's location, sim region, or even scripted events within the environment. For instance, entering a specific themed area could automatically equip appropriate accessories or clothing.
- Roleplay Enhancements: Roleplay sims could use the feature to apply specific uniforms, tools, or items relevant to the scenario upon entry, or to remove them when leaving.
- Event and Venue Interactivity: Avatars attending events could automatically equip promotional items or event-specific wearables without requiring manual handling.
- Environmental Adaptation: Attachments or wearables could change dynamically based on the environment, such as equipping a raincoat in a weather-themed sim or removing accessories when entering water.
- Enhanced User Interfaces: HUDs or scripted objects could allow users to manage their avatar's wardrobe more intuitively, such as "quick change" functionality for complex setups.
- Automated Personalisation: Avatars could have scripts that automatically swap items based on time of day, mood, or other user-defined triggers.
This feature would significantly expand Second Life’s interactivity and customisation options, allowing users to create more dynamic and immersive experiences. It would be particularly valuable for creators, event organisers, and roleplay communities, fostering creativity and innovation within the platform.
Log In
Maestro Linden
closed
Hello, and thank you for your feature request.
Incoming suggestions are reviewed in the order they are received by a team of Lindens with diverse areas of expertise. We consider a number of factors: Is this change possible? Will it increase lag? Will it break existing content? Is it likely that the number of residents using this feature will justify the time to develop it? This wiki page further describes the reasoning we use: Feature Requests
This particular suggestion, unfortunately, cannot be tackled at this time. However, we regularly review previously deferred suggestions when circumstances change or resources become available.
We are grateful for the time you took to submit this feature request. We hope that you are not discouraged from submitting others in the future. Many excellent ideas to improve Second Life come from you, our residents. We can’t do it alone.
Thank you for your continued commitment to Second Life.
Vincent Nacon
It's more likely that we could see such functions via LUA rather than LSL scripting since these are client-side type of control.
Caelan Whimsy
A lot of this can be handled using RLV. Another option is if the items in question are modifiable, adding a simple script that will make them turn visible or transparent with certain triggers. I'm not a great scripter, but I made a snorkel mask that is invisible until the wearer enters Linden water. It could have also responded to a simple show/hide hud.