Well, I'm making a bed, and I wanted to put a pose into a pillow...
I'm done with that, but my avi is not in a good position!
Some have a nice script that I can rotate my pose, so It will be in the wanted position?
or maybe just a tips ! I do use this one >>>
CODE
string ani_name = "SleepM"; // Put name of animation here
key sitter;
default
{
state_entry()
{
llSetSitText("Sleep");
llSetAlpha(1.0,ALL_SIDES);
llSitTarget(<0.5,0.6,0>,llGetRot());
}
changed(integer thechange) {
if (thechange & CHANGED_LINK) {
key now = llAvatarOnSitTarget();
if (now != NULL_KEY) {
llRequestPermissions(llAvatarOnSitTarget(),PERMISSION_TRIGGER_ANIMATION);
sitter = now;
} else {
llStopAnimation(ani_name); // Remove if this causes error in some SL vers
llSay(-8888,((string)sitter)+"booton");
llSetAlpha(1.0,ALL_SIDES);
}
}
}
run_time_permissions(integer perms) {
if (perms & PERMISSION_TRIGGER_ANIMATION) {
llSetAlpha(1.0,ALL_SIDES);
llSay(-8888,((string)sitter)+"bootoff"); // Lockmeister AO disable signal
llSleep(0.3); // Wait for AO to detect state and start its animation
list n = llGetAnimationList(sitter); // Stop all animations on avatar
integer t;
for (t=0; t<llGetListLength(n); t++) llStopAnimation(llList2Key(n,t));
llStartAnimation(ani_name); // Run our own animation
}
}
}
Thanks for advance

