Subscribe to receive events on chat messages from the system, users or scripts.
[System.Obsolete("Use subscription callbacks of type Action<Sansar.Simulation.ChatData>", false)]public delegate void Chat.SubscriptionHandler( int Channel, string Source, Sansar.Script.SessionId SourceId, Sansar.Script.ScriptId SourceScriptId, string Message)| Parameter | Type | Description |
|---|---|---|
Channel | int | int channel which the chat occurs on. |
Source | string | string source of the chat: system, user or script. |
SourceId | Sansar.Script.SessionId | Sansar.Script.SessionId id of the chat source. May be SessionId.Invalid if the source is not an agent. |
SourceScriptId | Sansar.Script.ScriptId | Sansar.Script.ScriptId id of the chat source. May be ScriptId.Invalid if the source is not a script. |
Message | string | string message of the chat event. |
Generated from the Sansar 47.10.0 client ScriptApi snapshot.