Tutorial on triggers

Original Discord Post by luislanca | 2024-07-11 10:27:52

Hi. I’m just new to NPC and Convai. I’m on an assignment on a VR experience and trying to incorporate as much interactivity as posible with convai and unreal. Can somebody point out a good tutorial on triggers? I’m trying to include “physical” triggers (when the user get to a certain location… and “voice” triggers (when the user calls the avatar’s name) so that he will show up and give some support needed. After that he will disappear and let the user continue playing. Are these both posible?

Reply by darkladen | 2024-07-11 12:17:38

Hello, some things I have managed to do is to activate actions by triggers in some places, for example, when the NPC moves to a certain place (with the action “move_to” and on his way passes through a point of interest, you can trigger an event in that place as for example, send a text to convai with the node “Invoke Speech” to tell what happens in that place or another example such as, show or hide an actor in the scene, even perform some custom action as shown in the tutorial videos of Convai. With the latter (custom actions) I don’t have much practice but the former works and for other things it’s just imagination.

About triggers to call an NPC, I think the NPC reacts only from a certain range (distance) but I haven’t gone too deep in controlling the NPC in long distances, anyway I think it’s possible. I hope you get more information if this is not very helpful.

Reply by luislanca | 2024-07-13 12:19:18

Thx. It helps a lot. I’ll search for the convai tutorials on physical triggers… and keep digging on the “voice” triggers.

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