Page 1 of 1

RFPS on use event

Posted: Wed Sep 21, 2016 11:43 pm
by thegamerguynz
How would i set a sequence trigger ÖnUse event using Realistic FPS Usable tag?

Re: RFPS on use event

Posted: Thu Sep 22, 2016 6:14 am
by Tony Li
Hi,

The example scene (Third Party Support > Realistic FPS Prefab > Example) contains a few NPCs with conversations. Each has a child GameObject named "Dialogue AI" with a Conversation Trigger set to OnUse. (I used a child GameObject just to make it easy to find the Dialogue System-related components; you could just as easily put the components on the main NPC GameObject.)
  • Happy Robot uses RFPS's selection and triggering system. By default, this shows a hand icon and triggers when the player presses the 'F' key. To set it up, I set the Tag to Usable, and then added a collider, Conversation Trigger (set to OnUse), and a Dialogue System On Pick Up Item component. I configured the Dialogue System On Pick Up Item component to send the message "OnUse" to itself. You could do the same thing with a Sequence Trigger instead of a Conversation Trigger. This is probably what you'll want to do.
  • Sad Robot and Android Follower use the Dialogue System's selection and triggering system. To set it up, I added a collider, Usable component, and Conversation Trigger set to OnUse. However, in this case, I also had to set up the player's FPS Camera > Main Camera with a Dialogue System Selector component. This is an alternative way to set up interaction. With RFPS, though, I prefer to keep everything consistent and use RFPS's interaction system as with Happy Robot.

Re: RFPS on use event

Posted: Sat Sep 24, 2016 7:41 am
by thegamerguynz
Thankyou it works perfectly. I think i the rest of it sorted :-)

Re: RFPS on use event

Posted: Sat Sep 24, 2016 8:40 am
by Tony Li
Happy to help!