[HOWTO] How To: Bark in Range
Posted: Thu Dec 05, 2019 11:00 am
Someone asked:
2. On the first child:
1. Add 2 child GameObjects to the NPC.can I set a bark like player is in range, NPC barks at player "Come over here" and then when player is close, initiate a conversation?
2. On the first child:
- Add a trigger collider (such as a Sphere Collider with Is Trigger ticked). Make it as big as the range where the NPC should bark.
- Add a rigidbody. Tick Is Kinematic.
- Add a Dialogue System Trigger. Set it to OnTriggerEnter. Click the Use 'Player' Tag button.
- Select Add Action > Bark. Set up the bark text/conversation. Assign the NPC to the Barker field.
- Add a trigger collider (such as a Sphere Collider with Is Trigger ticked). Make it as big as the range where the NPC should start the conversation.
- Add a rigidbody. Tick Is Kinematic.
- Add a Dialogue System Trigger. Set it to OnTriggerEnter. Click the Use 'Player' Tag button.
- Select Add Action > Start Conversation. Set up the conversation. Assign the NPC to the Conversation Conversant field