aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/YEngine/XMREngine.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/YEngine/XMREngine.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/YEngine/XMREngine.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/YEngine/XMREngine.cs b/OpenSim/Region/ScriptEngine/YEngine/XMREngine.cs
index f30ecc8..d2b4ebd 100644
--- a/OpenSim/Region/ScriptEngine/YEngine/XMREngine.cs
+++ b/OpenSim/Region/ScriptEngine/YEngine/XMREngine.cs
@@ -854,7 +854,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
854 public bool PostScriptEvent(UUID itemID, EventParams parms) 854 public bool PostScriptEvent(UUID itemID, EventParams parms)
855 { 855 {
856 XMRInstance instance = GetInstance(itemID); 856 XMRInstance instance = GetInstance(itemID);
857 if(instance == null) 857 if (instance == null)
858 return false; 858 return false;
859 859
860 TraceCalls("[YEngine]: YEngine.PostScriptEvent({0},{1})", itemID.ToString(), parms.EventName); 860 TraceCalls("[YEngine]: YEngine.PostScriptEvent({0},{1})", itemID.ToString(), parms.EventName);
@@ -863,6 +863,17 @@ namespace OpenSim.Region.ScriptEngine.Yengine
863 return true; 863 return true;
864 } 864 }
865 865
866 public void CancelScriptEvent(UUID itemID, string eventName)
867 {
868 XMRInstance instance = GetInstance(itemID);
869 if (instance == null)
870 return;
871
872 TraceCalls("[YEngine]: YEngine.CancelScriptEvent({0},{1})", itemID.ToString(), eventName);
873
874 instance.CancelEvent(eventName);
875 }
876
866 // Events targeted at all scripts in the given prim. 877 // Events targeted at all scripts in the given prim.
867 // localID = which prim 878 // localID = which prim
868 // parms = event to post 879 // parms = event to post