aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs34
1 files changed, 14 insertions, 20 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index ead88d5..8a967ac 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -945,25 +945,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
945 } 945 }
946 946
947 // send a message to to object identified by the given UUID, a script in the object must implement the dataserver function 947 // send a message to to object identified by the given UUID, a script in the object must implement the dataserver function
948 // the dataserver function is passed the ID of the calling function and a string message 948 // the dataserver function is passed the ID of the calling function and a string message
949 public void osMessageObject(LSL_Key objectUUID,string message) 949 public void osMessageObject(LSL_Key objectUUID, string message)
950 { 950 {
951 CheckThreatLevel(ThreatLevel.Low,"osMessageObject"); 951 CheckThreatLevel(ThreatLevel.Low, "osMessageObject");
952 m_host.AddScriptLPS(1); 952 m_host.AddScriptLPS(1);
953 953
954 954 object[] resobj = new object[] { new LSL_Types.LSLString(m_host.UUID.ToString()), new LSL_Types.LSLString(message) };
955 object[] resobj = new object[] { new LSL_Types.LSLString(m_host.UUID.ToString()),new LSL_Types.LSLString(message) }; 955
956 956 SceneObjectPart sceneOP = World.GetSceneObjectPart(new UUID(objectUUID));
957 SceneObjectPart sceneOP = World.GetSceneObjectPart(new UUID(objectUUID)); 957
958 958 m_ScriptEngine.PostObjectEvent(
959 m_ScriptEngine.PostObjectEvent( 959 sceneOP.LocalId, new EventParams(
960 sceneOP.LocalId, new EventParams( 960 "dataserver", resobj, new DetectParams[0]));
961 "dataserver", resobj, 961 }
962 new DetectParams[0]));
963
964 }
965
966 } 962 }
967
968
969} 963}