(Solved) Triggering the conversation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
drandy007
Posts: 4
Joined: Sat Dec 07, 2019 8:56 am

(Solved) Triggering the conversation

Post by drandy007 »

I'm using a FPS controller that I created. It has its own interaction system. I've got it setup till the point that the player presses the interact button and it prints "Starting Conversation...". I want to trigger an event (to start the conversation using my interaction system) instead of the print message. Is there a way to do this? If so, how?
Last edited by drandy007 on Sun Dec 08, 2019 5:16 am, edited 1 time in total.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Triggering the conversation

Post by Tony Li »

Hi,

Add a Dialogue System Trigger to the interactable object. Leave the trigger type set to OnUse. Select Add Action > Start Conversation, and select the conversation that you have written in your dialogue database.

Configure your interaction system to call the Dialogue System Trigger's OnUse(Transform) method, passing the transform of the player GameObject (i.e., your FPS controller).
drandy007
Posts: 4
Joined: Sat Dec 07, 2019 8:56 am

Re: Triggering the conversation

Post by drandy007 »

Thanks

Got it working now.
Post Reply