Disable interruption

Original Discord Post by focuskontrol | 2024-08-23 19:33:48

Is there a good way for a NPC to ignore a player trying to interrupt them while they’re speaking? Sometimes it would be useful.

Reply by k3kalinix | 2024-08-26 09:17:21

<@1216254232957685765>

Reply by mighty_brute | 2024-08-26 09:26:28

Hello <@249594950071746561>, remove interruption method from blueprint.

Reply by focuskontrol | 2024-08-26 09:50:34

Hey, this seems like a method to permanently disable interruption, I want to dynamically change it between different triggers. I guess for now I can think of something myself, but it would be useful in the future for the Invoke functions to have a bool “Can Be Interrupted”. Or just one bool for the chatbot component itself would be fine.

Reply by focuskontrol | 2024-08-27 13:51:27

It seems removing the interruption method from blueprint isn’t possible as it’s a part of the ChatbotComponent C++ class. And there InterruptSpeech is not a virtual void, so it can’t be overwritten either in a C++ child class

Reply by k3kalinix | 2024-08-27 13:55:23

<@365628745886859267>

Reply by freezfast | 2024-08-27 14:11:04

You can ignore by setting a barnch right after the T keyboard event, and basically check if the character is currently talking or not, if the character is talking the we do nothing

Reply by freezfast | 2024-08-27 14:11:58

<@1216254232957685765> could you provide a quick screenshot of how this can be done? It would basically us the IsTalking function on the ChatbotComponent

Replying to freezfast’s Message

Reply by freezfast | 2024-08-27 14:11:04
You can ignore by setting a barnch right after the T keyboard event, and basically check if the character is currently talking or not, if the character is talking the we do nothing

Reply by focuskontrol | 2024-08-27 16:06:34

that’s a good idea, I’ll test that out. But yeah, that’s still a permanent change

This conversation happened on the Convai Discord Server, so this post will be closed.