Update svn properties, minor formatting cleanup.

0.6.0-stable
Jeff Ames 2008-11-05 15:15:41 +00:00
parent b84417a220
commit 638fe7a7b5
2 changed files with 19 additions and 25 deletions

View File

@ -945,25 +945,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
}
// send a message to to object identified by the given UUID, a script in the object must implement the dataserver function
// the dataserver function is passed the ID of the calling function and a string message
public void osMessageObject(LSL_Key objectUUID,string message)
{
CheckThreatLevel(ThreatLevel.Low,"osMessageObject");
m_host.AddScriptLPS(1);
// the dataserver function is passed the ID of the calling function and a string message
public void osMessageObject(LSL_Key objectUUID, string message)
{
CheckThreatLevel(ThreatLevel.Low, "osMessageObject");
m_host.AddScriptLPS(1);
object[] resobj = new object[] { new LSL_Types.LSLString(m_host.UUID.ToString()), new LSL_Types.LSLString(message) };
object[] resobj = new object[] { new LSL_Types.LSLString(m_host.UUID.ToString()),new LSL_Types.LSLString(message) };
SceneObjectPart sceneOP = World.GetSceneObjectPart(new UUID(objectUUID));
m_ScriptEngine.PostObjectEvent(
sceneOP.LocalId, new EventParams(
"dataserver", resobj,
new DetectParams[0]));
}
SceneObjectPart sceneOP = World.GetSceneObjectPart(new UUID(objectUUID));
m_ScriptEngine.PostObjectEvent(
sceneOP.LocalId, new EventParams(
"dataserver", resobj, new DetectParams[0]));
}
}
}