Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Clothing manupulation with LSL

Jethric Mousehold
Second Life Resident
Join date: 25 Oct 2004
Posts: 3
10-25-2004 19:07
At present we can attach and detach attachments with LSL, but we can not appear to do the same with clothing. Adding LSL functions to do this (and include Hair, Skin, Eyes and Shape), would allow one to easily (through a scripted object and issuing a spoken command) change shape and/or clothes.

Something like llWear and llTakeOff would be great.

-Jethric Mousehold
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
10-25-2004 19:34
I totally agree, this would make for better (read more graphic) FPS and the like as it would allow us to change clothing to match the amount of damage done (av that is bleeding to death should have blood soaked clothes).

I think the commands should be
integer llWearInventory(string name, integer hide)
llTakeOff(integer id)
list llGetAttachments()
list llGetClothing()

name can be the name of an object or clothing/body part
if hide is true then the object/clothing doesn't show up in inventory when attached. Also taking off the attachment that called llWearInventory will cause all the clothing associated with it that were called with the hide equal to true get taken off. Name can also be a UUID. An object/clothing can be taken off by calling llTakeOff(id) where id is equal to the integer returned by llWearInventory. llGetAttachments() & llGetClothing() return a strided list of places where object/clothing are located on the body and the id used to remove them.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey