In this lesson you can learn how to replace two pieces shoes with one piece shoes.
Shoe Types [ at least what i have :D ]:
1 piece rigged shoes and the 2 pieces rigged or unrigged shoes.
- 1 piece Rigged shoes Worn on Left Lower Leg.
- 2 pieces Rigged/Unrigged shoes Worn on Left and Right Lover Leg.
With Attachment Point System (Replace Wearing Policy) the 1 piece Rigged shoes nicely replacing wach others when i change shoes.
But what to do with 2 pieces shoes?
- Left worn on Left Lower Leg
- Right worn on Right Lower Leg
and when i wanna put on an 1 piece Rigged shoes the Left one will be replaced but the Right one will stay on me.
For solve this create an object:
- Attachment Remover - Right Lower Leg
- Wear it on Right Lower Leg attachment point
Then rezz it and put this script inside:
default
{
attach(key id)
{
if (id != NULL_KEY && llGetAttached() != 0)
{
llRequestPermissions(id, PERMISSION_ATTACH);
}
}
run_time_permissions(integer perm)
{
if (perm & PERMISSION_ATTACH)
{
llSleep(2.0);
llDetachFromAvatar();
}
}
}
4. Then make an entry for it on Wardrobe and in RLV folder too (Wearing Policy: Replace)
5. Now just add it as Put On More outfit to the Feet Entry:
6. Foot Base ready to be added as Base to the 2 shoes i have:
The 1 piece rigged shoes:
The 2 piece rigged / unrigged shoes:
So what happens here?
- When im wearing 1 piece rigged shoe and i wanna put on 2 piece shoe:
the Legacy Feet Base will put on the Right Feet Remover (nothing to take off) and 2 piece shoe Left one will replace the 1 piece rigged shoes.
- When im wearing the 2 piece shoes and i wanna put on the 1 piece shoes
the Legacy Feet Base will put on the Right Feet Remover and it will take off the Right side of 2 pieces shoe and then the will replace the rigged 1 piece shoes on Left Lower Leg.