Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Animation -- Agent not found

Chaz Longstaff
Registered User
Join date: 11 Oct 2006
Posts: 685
07-07-2008 23:06
Many poseball scripts, I've noticed, seem to give off this error message when someone who was on the ball just logs off SL (or crashes) while on the ball.

"Object: llStopAnimation: Script trying to stop animations but agent not found"

Is there any kind of error that one can build into such scripts to avoid this? Occasionally, it leaves them in an unworkable state for the next person.
_____________________
Thread attempting to compile a list of which animations are freebies, and which are not:

http://forums.secondlife.com/showthread.php?t=265609
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
07-07-2008 23:10
use the changed event

http://cheesefactory.us/lslwm/changed.htm
Thickbrick Sleaford
Baffled
Join date: 28 Dec 2006
Posts: 26
07-08-2008 07:14
You can check if the avatar is still in the same sim by using the fact that llGetAgentSize() returns ZERO_VECTOR if they aren't.

key av = llGetPersimmionsKey();
if (llGetAgentSize(av) != ZERO_VECTOR) {
//stop animation here.
}

I haven't tested this extensively, but I think it works both for when the user logged out and when they teleported away while sitting.