Thank you kindly, Nlin for a patch that:
Attached patch adds detection of AGENT_WALKING status to LSL function llGetAgentInfo()0.6.0-stable
parent
3c99f027b5
commit
809a1d3367
|
@ -1478,7 +1478,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
/// <summary>
|
||||
/// This method determines the proper movement related animation
|
||||
/// </summary>
|
||||
protected string GetMovementAnimation()
|
||||
public string GetMovementAnimation()
|
||||
{
|
||||
if (m_movementflag != 0)
|
||||
{
|
||||
|
|
|
@ -4671,6 +4671,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
flags |= ScriptBaseClass.AGENT_TYPING;
|
||||
}
|
||||
|
||||
string agentMovementAnimation = agent.GetMovementAnimation();
|
||||
if (agentMovementAnimation == "WALK" || agentMovementAnimation == "CROUCHWALK")
|
||||
{
|
||||
flags |= ScriptBaseClass.AGENT_WALKING;
|
||||
}
|
||||
|
||||
//NotImplemented("llGetAgentInfo");
|
||||
|
||||
return flags;
|
||||
|
|
Loading…
Reference in New Issue