Skip to content

Get Sansar

Script API

ScriptEventData

Where: Client
More page actions

For the complete documentation index, see llms.txt. This page is also available as Markdown.

Class Namespace Sansar.Script Inherits EventData

Result of a ScriptBase.PostScriptEvent call.

public class ScriptEventData : EventData

Remarks

Use ScriptBase.SubscribeToScriptEvent to subscribe to events.

Members at a glance

KindMembers
PropertiesData · Message · SourceScriptId

Properties

Data

public Reflective Data { get; }

The data passed by ScriptBase.PostScriptEvent.

Value: Reflective — May be null.

Message

public string Message { get; }

The message the event was created with.

Value: string — This string should always match the corresponding ScriptBase.SubscribeToScriptEvent call.

SourceScriptId

public ScriptId SourceScriptId { get; }

The id of the script which generated the event.

Used in examples

…and 23 more examples in the snapshot.

Generated from the Sansar 47.10.0 client ScriptApi snapshot.