mirror of
https://github.com/opensim/opensim.git
synced 2026-08-02 23:18:34 +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:
@@ -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