Launch Trigger in Narrative Design

Original Discord Post by josegarciacordoba | 2024-10-11 17:18:19

From the Backend if I click on “Invoke Trigger” it works, the process is launched.

But from Unity, in the Narrative Design Manager component after doing Update I see the ID of the section. But I don’t know how to launch the start Trigger.

Thanks.

Reply by k3kalinix | 2024-10-11 21:49:18

Hello <@992368851234869308>,

Reply by k3kalinix | 2024-10-11 21:49:18

Embedded Content:
AI-powered Onboarding Character for Digital Twin Environments | Co…
This Unity tutorial shows you how to add a Convai-powered Tour Guide character for your 3D virtual environments. Convai’s Narrative Design Feature lets creators add spatial anchors in the 3D environment which guides the 3D AI character to navigate the world while following step-by-step instructions. The character follows instruction prompts comb…
Link: https://www.youtube.com/watch?v=wmhoNXUhc1U

Reply by k3kalinix | 2024-10-11 21:49:23

Please follow this tutorial.

Replying to k3kalinix’s Message

Reply by k3kalinix | 2024-10-11 21:49:18
Hello <@992368851234869308>,

Reply by josegarciacordoba | 2024-10-12 10:48:39

The problem is that my Avatar and the player are static, they never come close. So the first trigger never fires.

How can I force that first trigger?

Thanks.

Reply by k3kalinix | 2024-10-12 10:55:53

Place the character inside the trigger collider.

Replying to k3kalinix’s Message

Reply by k3kalinix | 2024-10-12 10:55:53
Place the character inside the trigger collider.

Reply by josegarciacordoba | 2024-10-12 11:09:18

Ok, thanks, I was already doing that. But since they were static objects, I didn’t have RigidBody. But when I activate it, it detects it.

Thanks again!! You always have a solution for everything!

Reply by k3kalinix | 2024-10-12 11:09:44

Use RB as kinematic.

Replying to k3kalinix’s Message

Reply by k3kalinix | 2024-10-12 11:09:44
Use RB as kinematic.

Reply by josegarciacordoba | 2024-10-12 11:15:10

Exactly, that’s how I have it.

But now I have another question.

Can I customize the Narrative Design through the API?

That is, for example, send a specific from the API?

Thanks.

Reply by k3kalinix | 2024-10-12 11:16:29

Yes, you can send a message.

Replying to k3kalinix’s Message

Reply by k3kalinix | 2024-10-12 11:16:29
Yes, you can send a message.

Reply by josegarciacordoba | 2024-10-12 11:21:19

Sorry, but I don’t understand you.

A message, what?

Reply by k3kalinix | 2024-10-12 11:22:31

InvokeSelectedTrigger has a parameter called Called Message. You can use that.

Images:
image.png

Reply by k3kalinix | 2024-10-12 11:22:53

NarrativeDesignTrigger.cs

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