Page 1 of 1
(Solved) Triggering the conversation
Posted: Sat Dec 07, 2019 10:56 pm
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?
Re: Triggering the conversation
Posted: Sat Dec 07, 2019 11:12 pm
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).
Re: Triggering the conversation
Posted: Sun Dec 08, 2019 5:15 am
by drandy007
Thanks
Got it working now.