Page 1 of 1
Check if Specific Conversation or Actor is Active in Script?
Posted: Tue Jun 15, 2021 2:08 am
by datchcole
I know I can use dialogueManager.IsConversationActive to check if any conversation is active, but is there a way to check if either a specific conversation or if not, if a specific actor is active in a script? Thank you for any help.
Re: Check if Specific Conversation or Actor is Active in Script?
Posted: Tue Jun 15, 2021 8:23 am
by Tony Li
Hi,
If you only allow one conversation at a time, which is the default setting on the Dialogue Manager, you can check DialogueManager.lastConversationStarted for the conversation title or DialogueManager.lastConversationID for the conversation ID number. The actor is in DialogueManager.currentActor.
If you allow simultaneous conversations, you can loop through DialogueManager.instance.
activeConversations.
Re: Check if Specific Conversation or Actor is Active in Script?
Posted: Tue Jun 15, 2021 4:11 pm
by datchcole
Awesome thank you.
Re: Check if Specific Conversation or Actor is Active in Script?
Posted: Tue Jun 15, 2021 4:32 pm
by Tony Li
Glad to help!