Client
Last updated
Last updated
The Client class is used for access to the Client connected to a .
Syntax[get: Sansar.Script.Interface] public AgentInfo { get; }
Value
The for this instance
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Clears any scripted tutorial hint being shown to the player
Syntax
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Clears any scripted tutorial hint being shown to the player
SyntaxParameters
handler
Handler to be called when the event completes.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Enables / Disables automatic (non-scripted) tutorial hints.
SyntaxParameters
enabled
Enabled state of automatic hints.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Enables / Disables automatic (non-scripted) tutorial hints.
SyntaxParameters
enabled
Enabled state of automatic hints.
handler
Handler to be called when the event completes.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Opens the quest dialog for a character.
SyntaxParameters
character
The character to open the quest dialog for.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Opens the product's Store page.
SyntaxParameters
productId
A product ID from a Sansar store listing.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
SyntaxParameters
message
The message to send.
Exceptions
If the user is no longer online.
If the throttle rate is exceeded.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Show a tutorial hint to the player
SyntaxParameters
hint
The hint to show.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Show a tutorial hint to the player
SyntaxParameters
hint
The hint to show.
handler
Handler to be called when the event completes.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Subscribes to Command Events.
SyntaxSee Also
Parameters
Command
The command which occurred.
callback
Callback which is executed when the event completes.
canceled
Callback which is executed when the subscription is canceled.
persistent
Optional, set to false to unsubscribe after one event.
Returns
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Subscribes to Command Events.
SyntaxSee Also
Parameters
Command
The command which occurred.
Action
The action which occurred.
callback
Callback which is executed when the event completes.
canceled
Callback which is executed when the subscription is canceled.
persistent
Optional, set to false to unsubscribe after one event.
Returns
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Teleports to the position facing the specified direction
SyntaxParameters
position
The teleport destination position.
forward
The teleport destination forward direction.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Teleports the personaHandle to the locationHandle.
SyntaxParameters
avatarId
locationHandle
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Teleports to the specified URI
SyntaxParameters
sansarUri
The URI to teleport to.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
A string representation of this object.
SyntaxReturns
A string representation of this object.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
SyntaxValue
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Pulses the vibration haptic motor for a control point.
SyntaxParameters
type
intensity
Intensity of vibration. Intensity will be clamped to the range [0, 1].
duration
Duration of the pulse in milliseconds. Will be clamped to the range [0, 1000].
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
[Sansar.Script.Interface] public ClearTutorialHint ()
[Sansar.Script.Interface] public EnableAutomaticTutorialHints ( enabled)
[Sansar.Script.Interface] public OpenQuestCharacterDialog ( character)
[Sansar.Script.Interface] public OpenStoreListing ( productId)
Sends a message to the $className$.
[Sansar.Script.Interface] [System.Obsolete("Deprecated. Use AgentPrivate.SendChat or AgentPublic.SendChat", false)] public SendChat ( message)
[Sansar.Script.Interface] public ShowTutorialHint ( hint)
An that can be used to cancel the subscription.
An that can be used to cancel the subscription.
[Sansar.Script.Interface] public TeleportToLocation ( avatarId, locationHandle)
The of the destination creator.
The of the destination.
[Sansar.Script.Interface] public TeleportToUri ( sansarUri)
[Sansar.Script.Interface] public override ToString ()
[get: Sansar.Script.Interface] public UI { get; }
The for this instance
See