aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorCharles Krinke2008-10-22 14:09:58 +0000
committerCharles Krinke2008-10-22 14:09:58 +0000
commit809a1d3367e3a8f69ae101c660ef0f3b8a5b9a43 (patch)
tree847d449dc80a384ddd9008d778060d558200e167 /OpenSim/Region
parentThank you both Nlin and M.Igarashi for a patch that: (diff)
downloadopensim-SC-809a1d3367e3a8f69ae101c660ef0f3b8a5b9a43.zip
opensim-SC-809a1d3367e3a8f69ae101c660ef0f3b8a5b9a43.tar.gz
opensim-SC-809a1d3367e3a8f69ae101c660ef0f3b8a5b9a43.tar.bz2
opensim-SC-809a1d3367e3a8f69ae101c660ef0f3b8a5b9a43.tar.xz
Thank you kindly, Nlin for a patch that:
Attached patch adds detection of AGENT_WALKING status to LSL function llGetAgentInfo()
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs6
2 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index 2caeb14..4346b08 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -1478,7 +1478,7 @@ namespace OpenSim.Region.Environment.Scenes
1478 /// <summary> 1478 /// <summary>
1479 /// This method determines the proper movement related animation 1479 /// This method determines the proper movement related animation
1480 /// </summary> 1480 /// </summary>
1481 protected string GetMovementAnimation() 1481 public string GetMovementAnimation()
1482 { 1482 {
1483 if (m_movementflag != 0) 1483 if (m_movementflag != 0)
1484 { 1484 {
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
4671 flags |= ScriptBaseClass.AGENT_TYPING; 4671 flags |= ScriptBaseClass.AGENT_TYPING;
4672 } 4672 }
4673 4673
4674 string agentMovementAnimation = agent.GetMovementAnimation();
4675 if (agentMovementAnimation == "WALK" || agentMovementAnimation == "CROUCHWALK")
4676 {
4677 flags |= ScriptBaseClass.AGENT_WALKING;
4678 }
4679
4674 //NotImplemented("llGetAgentInfo"); 4680 //NotImplemented("llGetAgentInfo");
4675 4681
4676 return flags; 4682 return flags;