actor name on C# Custon Lua function

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
fkkcloud
Posts: 298
Joined: Mon Oct 05, 2020 6:00 am

actor name on C# Custon Lua function

Post by fkkcloud »

Hi,

Is it possible to know actor name in the custom C# Lua function?
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: actor name on C# Custon Lua function

Post by Tony Li »

Hi,

To get the current node's speaker and listener names:

Code: Select all

string speakerName = DialogueManager.currentConversationState.subtitle.speakerInfo.Name;
string listenerName = DialogueManager.currentConversationState.subtitle.listenerInfo.Name;
Post Reply