private void EndConversation( uint playerId, CharacterAnimController controller, CharacterDialogueTree tree) { QSBPlayerManager.GetPlayer(playerId).CurrentDialogueID = -1; controller.SetValue("_inConversation", false); controller.SetValue("_playerInHeadZone", false); if (controller.GetValue <bool>("_hasTalkAnimation")) { controller.GetValue <Animator>("_animator").SetTrigger("Idle"); } tree.GetInteractVolume().EnableInteraction(); }
private void StartConversation( uint playerId, int characterId, CharacterAnimController controller, CharacterDialogueTree tree) { QSBPlayerManager.GetPlayer(playerId).CurrentDialogueID = characterId; controller.SetValue("_inConversation", true); controller.SetValue("_playerInHeadZone", true); if (controller.GetValue <bool>("_hasTalkAnimation")) { controller.GetValue <Animator>("_animator").SetTrigger("Talking"); } tree.GetInteractVolume().DisableInteraction(); }