aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/XEngine
diff options
context:
space:
mode:
authorMelanie Thielker2009-04-11 16:51:27 +0000
committerMelanie Thielker2009-04-11 16:51:27 +0000
commit217b2d93ae77925e9ebbb0ef3e9b44d47e4234db (patch)
treedabfaa379dec57167e8a34a67f1089d2c2bd367f /OpenSim/Region/ScriptEngine/XEngine
parent* Minor MRM Cleanup (diff)
downloadopensim-SC_OLD-217b2d93ae77925e9ebbb0ef3e9b44d47e4234db.zip
opensim-SC_OLD-217b2d93ae77925e9ebbb0ef3e9b44d47e4234db.tar.gz
opensim-SC_OLD-217b2d93ae77925e9ebbb0ef3e9b44d47e4234db.tar.bz2
opensim-SC_OLD-217b2d93ae77925e9ebbb0ef3e9b44d47e4234db.tar.xz
Adding a script event, changed(CHANGED_ANIMATION)
This is sent to all root prims of all attachments of an avatar when the animation state changes. llGetAnimation() can thenbe used to find the new movement animation. This eliminates the need for fast timers in AOs
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/XEngine.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
index 037c494..f47e57d 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
@@ -938,6 +938,15 @@ namespace OpenSim.Region.ScriptEngine.XEngine
938 return PostScriptEvent(itemID, new EventParams(name, p, new DetectParams[0])); 938 return PostScriptEvent(itemID, new EventParams(name, p, new DetectParams[0]));
939 } 939 }
940 940
941 public bool PostObjectEvent(UUID itemID, string name, Object[] p)
942 {
943 SceneObjectPart part = m_Scene.GetSceneObjectPart(itemID);
944 if (part == null)
945 return false;
946
947 return PostObjectEvent(part.LocalId, new EventParams(name, p, new DetectParams[0]));
948 }
949
941 public Assembly OnAssemblyResolve(object sender, 950 public Assembly OnAssemblyResolve(object sender,
942 ResolveEventArgs args) 951 ResolveEventArgs args)
943 { 952 {