Hello, I'm confised! Lol! I tend to not work with animation because I have a hard time with animation scripts but I decided to work on that, I think I'm just missing something obvious, I hope anyways. I have a table with two chairs. Each chair has it's own animation and things that should happen when the avatar on that chair sits or stands, but regardless of what I've tried if I sit, then stand on Chair B the Chair A script is triggered. changed(integer change)
{
if (change & CHANGED_LINK)
{
key avatar = llAvatarOnLinkSitTarget(LINK_THIS);
if (llKey2Name(avatar) != "")
{
llRequestPermissions(avatar, PERMISSION_TRIGGER_ANIMATION);
}
else if (llAvatarOnLinkSitTarget(LINK_THIS)==NULL_KEY)
{
Tellerout();
if ((llGetPermissions() & PERMISSION_TRIGGER_ANIMATION) && sitting && llKey2Name(avatar) != "")
{
llStopAnimation("Stand");
llStopAnimation("Teller");
}
sitting = 0;
}
}
if (change & CHANGED_OWNER + CHANGED_REGION_START + CHANGED_INVENTORY)
{
llResetScript();
}
}