Page 1 of 1

actor name on C# Custon Lua function

Posted: Sat Oct 17, 2020 6:42 pm
by fkkcloud
Hi,

Is it possible to know actor name in the custom C# Lua function?

Re: actor name on C# Custon Lua function

Posted: Sat Oct 17, 2020 9:35 pm
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;