Sitting on a pillow….


Can be tremendously difficult for newbies.. 🙂
I wanted to sit down “a la japonese”….

Follow these instructions:

1. create a sphere .737,.923,.436 (or whatever fits you!), the only thing is that it should not be actually spheric. Apply a texture of your choice.

2. add the following script:


vector offset = ; // might to adjust z this depending on your original dimensions rotation rot = ;
default {
state_entry() {
llSitTarget(offset,rot);
llSetText("",,0);
llSetSitText("");
}
changed(integer change) {
if (change & CHANGED_LINK) {
if (llAvatarOnSitTarget() != NULL_KEY) {
llRequestPermissions(llAvatarOnSitTarget(), PERMISSION_TRIGGER_ANIMATION);
llStopAnimation("sit");
llStartAnimation("sit_ground");
}
}
}
}

Et voilà you have a working sitting pillow. 🙂

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s