Thank you kindly, Nlin for a patch that:

Attached patch adds detection of AGENT_WALKING 
status to LSL function llGetAgentInfo()
0.6.0-stable
Charles Krinke 2008-10-22 14:09:58 +00:00
parent 3c99f027b5
commit 809a1d3367
2 changed files with 7 additions and 1 deletions

View File

@ -1478,7 +1478,7 @@ namespace OpenSim.Region.Environment.Scenes
/// <summary> /// <summary>
/// This method determines the proper movement related animation /// This method determines the proper movement related animation
/// </summary> /// </summary>
protected string GetMovementAnimation() public string GetMovementAnimation()
{ {
if (m_movementflag != 0) if (m_movementflag != 0)
{ {

View File

@ -4671,6 +4671,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
flags |= ScriptBaseClass.AGENT_TYPING; flags |= ScriptBaseClass.AGENT_TYPING;
} }
string agentMovementAnimation = agent.GetMovementAnimation();
if (agentMovementAnimation == "WALK" || agentMovementAnimation == "CROUCHWALK")
{
flags |= ScriptBaseClass.AGENT_WALKING;
}
//NotImplemented("llGetAgentInfo"); //NotImplemented("llGetAgentInfo");
return flags; return flags;