

#Realistic fps prefab for how to
How to Disable NPC AI During Conversationsĭuring conversations, you will usually want to disable NPC AI on the NPC that the player is talking to. How to Control NPC AI During Conversations The camera will follow the FPSPlayer's position at the offset it has when the conversation starts. The integration will disable the Camera Kick component during conversations. The body will follow the FPSPlayer's position at the offset it has when the conversation starts.

If your player uses a visible body, the integration will also configure the player to disable the Visible Body component and play the idle animation when a conversation starts. The camera and visible body will follow it as described below: If you want to control the camera during conversations and cutscene sequences, control the FPSPlayer GameObject. The Disable Gameplay In Conversations menu items in Realistic FPS Prefab Setup Part 2 adds components to the player that disable player control during conversations.Īdditional Notes About RFPS Player During Conversations How to Disable Player Control During Conversations Set up miscellaneous triggers with the Dialogue System On Pick Up Item script if you want to tie them into RFPS's pickup/interaction system.Use a Dialogue System Events component to disable the NPCAttack component during conversations, as described in How to Control NPC AI During Conversations. Set up NPCs as normal for the Dialogue System.If you want to add a hotkey to open/close the quest log window, add an FPS Quest Log Window Hotkey component to FPS Player.If you want to use RFPS interaction instead, you can answer No. It may also ask if you want to add a Selector for the Dialogue System's interaction system.It will also add an FPS Lua Bridge to FPS Player that syncs RFPS and the Dialogue System as described in How to Disable Player Control During Conversations.This will add components to FPS Player to make it work smoothly with the Dialogue System, as described in How to Disable Player Control During Conversations. Select menu item Tools → Pixel Crushers → Dialogue System → Third Party → Realistic FPS Prefab → Disable Gameplay In Conversations.Add an RFPS player prefab if one isn't already in the scene.Add a Dialogue Manager GameObject (e.g., from Prefabs) to your scene.Once you've imported the packages and fixed the Input Manager, follow these steps to set up your scene: At this point you can jump to the Example Scenes if you'd like to get a preview of how the integration works before continuing to set up your own scene.
