RFPS on use event
-
- Posts: 12
- Joined: Mon Sep 19, 2016 8:34 pm
RFPS on use event
How would i set a sequence trigger ÖnUse event using Realistic FPS Usable tag?
Re: RFPS on use event
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.)
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.
-
- Posts: 12
- Joined: Mon Sep 19, 2016 8:34 pm
Re: RFPS on use event
Thankyou it works perfectly. I think i the rest of it sorted