Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Quick (I Hope) Question: llGetAgent Answer when in a Dance Animation

DrZippy McLean
Registered User
Join date: 22 Apr 2004
Posts: 27
05-02-2005 18:45
I'm new to scripting, so bear with.

(I'm trying to get an attached object to recognize if an avatar is dancing or not.)

What answer will the llGet AgentInfo function will return if it finds the avatar in a looped animation. (I'm guessing AGENT_ANIMATED - but I don't think there is sucha thing.)

I thought about detecting it's Velocity, but I found an av doesn't have any when it's performing an aminated loop.

Also, what is returned if an av is idle (standing). I know that AGENT_WALKING is returned is they are walking but I can't find what it is if it isn't.

Any help would be appreciated. Thanks a ton.
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
05-02-2005 19:09
Try this. If the animation is looping, the key of said animation will show up in this list:

http://secondlife.com/badgeo/wakka.php?wakka=llGetAnimationList

And you can find it with this function:

http://secondlife.com/badgeo/wakka.php?wakka=llListFindList
_____________________
---