Used this to test that pose stands, balls, and furniture are working great. Still no default animations though:
Code:
// The most basic of pose scripts
// change to the name of animation contained within your sittable object
string pose = "tpose2";
// change to x,y,z offset of object center where you want to appear (never all 0)
vector target = <0.0, 0.0, 1.5>;
// optional sit text to appear over object
string text = "T-Pose";
default {
state_entry()
{
llSitTarget(target, ZERO_ROTATION);
llSetSitText(text);
llSetText(text,<1.0,0.0,0.0>,1.0);
}
changed(integer change)
{
if (change & CHANGED_LINK)
{
if (llAvatarOnSitTarget() != NULL_KEY)
{
llRequestPermissions(llAvatarOnSitTarget(), PERMISSION_TRIGGER_ANIMATION);
llStopAnimation("sit");
llStartAnimation(pose);
llSetText("",<1.0,0.0,0.0>,1.0);
}
else
{
llStopAnimation(pose);
llSetText(text,<1.0,0.0,0.0>,1.0);
}
}
}
}
Attached is a BVH 'tpose2' animation to go with it (still working on getting it into standard inventory set). As with any pose animation, save this as a tpose2.bvh file, upload with SL client, set priority to 4, turn loop on, turn in and out to 0.0 (if you like).