From 809a1d3367e3a8f69ae101c660ef0f3b8a5b9a43 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Wed, 22 Oct 2008 14:09:58 +0000 Subject: Thank you kindly, Nlin for a patch that: Attached patch adds detection of AGENT_WALKING status to LSL function llGetAgentInfo() --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 4c4d173..9745ae6 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -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; -- cgit v1.1