Subscribe to receive events on chat messages from the system, users or scripts.
public class ChatData : Sansar.Script.EventDataMembers at a glance
| Kind | Members |
|---|---|
| Properties | Channel · Message · Source · SourceId · SourceScriptId |
| Methods | ToString |
Properties
Channel
public int Channel { get; }int channel which the chat occurs on.
Message
public string Message { get; }string message of the chat event.
Source
public string Source { get; }string source of the chat: system, user or script.
SourceId
public Sansar.Script.SessionId SourceId { get; }Sansar.Script.SessionId id of the chat source. May be SessionId.Invalid if the source is not an agent.
SourceScriptId
public Sansar.Script.ScriptId SourceScriptId { get; }Sansar.Script.ScriptId id of the chat source. May be ScriptId.Invalid if the source is not a script.
Methods
ToString
public override string ToString()A string representation of this object.
Returns: string — A string representation of this object.
Remarks
The format of this string may change between releases.
Used in examples
- StatsExample.cs
- VisitorTrackerExample.cs
CameraShakeExample.csColorLutExample.cs- GravityExample.cs
- MediaOverrideExample.cs
- QuestDebugExample.cs
- ScriptLibrary/Scene/ChatCommand.cs
TimeOfDayExample.cs
Generated from the Sansar 47.10.0 client ScriptApi snapshot.