Hi,
Is there a way to get by C# the current actor/conversant id (or his name if you can't access it) from an active conversation ->dialogue node?
Thanks!
[Solved] Get current actor/conversant id
[Solved] Get current actor/conversant id
Last edited by Japtor on Fri Oct 26, 2018 6:27 am, edited 1 time in total.
Re: Get current actor/conversant id
Hi,
Yes. It's in DialogueManager.currentConversationState. It has a subtitle property with CharacterInfo on the current actor (speakerInfo) and current conversation (listenerInfo), including their id's. Example:
Yes. It's in DialogueManager.currentConversationState. It has a subtitle property with CharacterInfo on the current actor (speakerInfo) and current conversation (listenerInfo), including their id's. Example:
Code: Select all
int actorID = DialogueManager.currentConversationState.subtitle.speakerInfo.id;
Re: Get current actor/conversant id
Hi,
Thank you very much! This is what I was looking for
Thank you very much! This is what I was looking for
Re: Get current actor/conversant id
Happy to help!