mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Thank you kindly, Nlin for a patch that:
Attached patch adds detection of AGENT_WALKING status to LSL function llGetAgentInfo()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user