Skip to content

TempAttach to Sitter When They Sit

HowardBaxton edited this page Sep 28, 2015 · 1 revision

SATMSG/NOTSATMSG Method:

The first line in our notecard is the ANIM line for seat1:

ANIM|meditation|<-0.8,0,0.8>|<0,0,0>

We still have to rez the prop. To hold off rezzing the prop until someone sits, we can make a BTN card to do the rezzing and call that card within a SATMSG as follows:

SATMSG|207|BTN::Attach|%AVKEY%|1

Contents of BTN::Attach should be a line to rez the temp attach object as a PROP, and a second line to do the attach command:

Due to the way nPose 2.0 handles reading cards, it is important to put the prop rez and attach command in this same card. We used to be able to use a second SATMSG line in the original card, that will not work any longer.

PROP|Male Create Glasses|<0,0,.5>|<0,0,0>

LINKMSG|-6002|Male Create Glasses=attach/17|%AVKEY%

We can also setup something that will happen when the AV seated in seat1 is no longer seated there or another pose is selected from the menu. To detach the item when the AV stands or moves from this seat add the following line next:

NOTSATMSG|-6002|Male Create Glasses=detach/17|%AVKEY%

We can now add a second seat with all associated lines such as follows:

ANIM|meditation|<0.8,0,0.8>|<0,0,180>

For a complete list of the attach points and the integer associated with each point, look at the following web link: (http://wiki.secondlife.com/wiki/LlAttachToAvatarTemp)