Otherwise the NPC could wander away or get into a fight while the player is trying to converse.
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
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.