Class DisplayDialogueAction
ECA action that triggers a server-authoritative dialogue session. On the server, raises OnServerDialogueRequested which the InteractableSystem subscribes to. On the client, this action is a no-op.
[Serializable]
public class DisplayDialogueAction : BaseAction, IAction
- Inheritance
-
DisplayDialogueAction
- Implements
- Inherited Members
Fields
DialogueTemplate
The dialogue template to start when this action executes on the server.
public DialogueTemplate DialogueTemplate
Field Value
SpeakerName
Optional speaker name override. If empty, resolves from event data.
public string SpeakerName
Field Value
Methods
Execute(ICharacter, EventData)
On the server: raises OnServerDialogueRequested to start a dialogue session. On the client: no-op (dialogue is driven by server broadcasts).
public override void Execute(ICharacter initiator, EventData eventData)
Parameters
initiatorICharacterThe character initiating the action.
eventDataEventDataEvent data used for context.