OpenSim.Region.ScriptEngine.Shared.Api.OSSL_Api.osMessageObject C# (CSharp) Method

osMessageObject() public method

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 osMessageObject ( OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString objectUUID, string message ) : void
objectUUID OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString
message string
return void
        public void osMessageObject(LSL_Key objectUUID, string message)
        {
            CheckThreatLevel(ThreatLevel.Low, "osMessageObject");
            m_host.AddScriptLPS(1);

            UUID objUUID;
            if (!UUID.TryParse(objectUUID, out objUUID)) // prior to patching, a thrown exception regarding invalid GUID format would be shouted instead.
            {
                OSSLShoutError("osMessageObject() cannot send messages to objects with invalid UUIDs");
                return;
            }

            MessageObject(objUUID, message);
        }
OSSL_Api