Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Agent Standing?

Nezu Garside
Custom titles are too sho
Join date: 12 Mar 2008
Posts: 40
01-28-2009 22:26
Hey, is there any way to check to see in an agent is just standing? They've got all the AGENT_WHATEVER pieces, but no specific AGENT_STANDING... Does anyone have any user defined code or is there some LSL piece that I am just not grasping?
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
01-28-2009 22:48
Maybe llGetAnimation would help.
_____________________
-

So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.

I can be found on the web by searching for "SuezanneC Baskerville", or go to

http://www.google.com/profiles/suezanne

-

http://lindenlab.tribe.net/ created on 11/19/03.

Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard,
Robin, and Ryan

-
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
01-29-2009 00:34
I think this SHOULD also do it (provided you verify the avatar is actually present in the sim):

CODE


integer isAgentStanding(key id)
{
integer NOT_STANDING_FLAGS =
AGENT_FLYING |
AGENT_SITTING |
AGENT_ON_OBJECT |
AGENT_WALKING |
AGENT_CROUCHING;
return (llGetAgentInfo(id) & NOT_STANDING_FLAGS) == 0;
}


Tailor to whether you want to logically include crouching or walking, of course. Or if you want to EXCLUDE typing.
Nezu Garside
Custom titles are too sho
Join date: 12 Mar 2008
Posts: 40
01-29-2009 07:34
Thanks guys. :) I will give that a try and let you all know if that works before I close this thread.
Nezu Garside
Custom titles are too sho
Join date: 12 Mar 2008
Posts: 40
Question Answered
01-29-2009 08:36
Sweet! It works. :D Thanks again.