Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Avatar animations not working right?

Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
12-13-2005 08:31
I have a set of poses I made for a client of mine and the test object(s) works perfectly for me, but when my client uses it, it doesn't pose him at all, unless he's in the same zone as me. Wierd, huh? The script, test object, and animations are all full permissions, so I'm wondering if it might not be something bizzare with my script itself. I can't get in-game right now, so I'll have to post the code later.
_____________________
My SLExchange shop

Typos are forgiven; desecrating the english language with reckless abandon and necrophilic acts is not.


The function is working perfectly fine. It's just not working the way you wanted it to work.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
12-13-2005 12:16
Flush the scripts cached keys and permissions when the user stands up or stops using it. You have some bit of logic that is requiring the previous user/owner to be present. Or your agent check before animation is checking for the owner/creator instread of the user.

It's a logic error.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
12-13-2005 21:10
From: Strife Onizuka
Flush the scripts cached keys and permissions when the user stands up or stops using it. You have some bit of logic that is requiring the previous user/owner to be present. Or your agent check before animation is checking for the owner/creator instread of the user.

It's a logic error.


I'm not sure how you are supposed to "flush the scripts cached keys and permissions" I'd assume with a llResetScript() command, but I'm not sure. here's my code now that I'm able to get in game

CODE

default
{
state_entry()
{
llListen(5,"",llGetOwner(),"");
}

on_rez(integer info)
{
llRequestPermissions(llGetOwner(),PERMISSION_TRIGGER_ANIMATION);
}

listen( integer channel, string name, key id, string message )
{
if (message == llToLower("pose"))
{
llStartAnimation("Sword in two hand-02");
}
else if (message == llToLower("stop"))
{
llResetScript();
llStopAnimation("Sword in two hand-02");
}
}
}
_____________________
My SLExchange shop

Typos are forgiven; desecrating the english language with reckless abandon and necrophilic acts is not.


The function is working perfectly fine. It's just not working the way you wanted it to work.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
12-14-2005 08:53
you weren't refreshing the listen between owner changes.

CODE

integer w;
string anim = "Sword in two hand-02";

reset()
{
llListenRemove(w);
w = llListen(5,"",llGetOwner(),"");
llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
}

default
{
state_entry()
{
reset();
}
on_rez(integer info)
{
reset();
}
listen( integer channel, string name, key id, string message )
{
if(llGetPermissions() & PERMISSION_TRIGGER_ANIMATION)
{
message = llToLower(message);
if (message == "pose"))
llStartAnimation(anim);
else if (message == "stop")
llStopAnimation(anim);
}
}
}
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey