Hello,
I am developing a open world game which generated npcs when game is started.
I currenty created multiple template conversions, but i didn't know how to set conversation actor in runtime.
Could you help me?
Thank you very much!
How to use dialogue system for generated npc
Re: How to use dialogue system for generated npc
Hi,
In C#, you can pass the generated NPC's transform to DialogueManager.StartConversation():
If you're using a Dialogue System Trigger, assign the NPC's transform to conversationConversant:
For other ways, please see: Character GameObject Assignments
In C#, you can pass the generated NPC's transform to DialogueManager.StartConversation():
Code: Select all
DialogueManager.StartConversation("conversation title", playerTransform, generatedNPCTransform);
Code: Select all
GetComponent<DialogueSystemTrigger>().conversationConversant = generatedNPCTransform;