Procedural NPC Crowds Documentation Portal
  • Welcome
  • Getting Started
    • Getting Setup
    • Common Troubleshooting
  • Walkthroughs
    • How to Add to a Custom Level
    • How to Add Interactions
    • How to use Custom Characters and Animations
    • How to Adjust Spawn Amounts
    • Extra Optimizations For NPCs
  • Feedback
    • Feedback Requests
Powered by GitBook
On this page
  1. Walkthroughs

How to Add Interactions

PreviousHow to Add to a Custom LevelNextHow to use Custom Characters and Animations

Last updated 24 days ago

This page covers how to use the features of Procedural NPC Crowds in Blueprints.

How to add interactions for your NPC:

To add interactions to your crowds, follow these steps:

  1. Open the behavior tree asset found in the demo content.

  2. Behavior trees execute from left to right, you can see their execution order with the number assigned to them.

  3. Use the "Perform Action" node, which has 32 unique actions, to have the NPC character running the behavior tree execute custom code.

  1. In your NPC character class under the class settings button, add the NPCAction Interface if it's not there already; the demo content includes it.

  1. Once the action interface is integrated with your AI character, go to the event graph and search for Event NPC Action[Number]. Once you have that, you can set up montages, attacks, dialogue, and anything else you want them to do. I recommend integrating with a "do once" if it's executed often.

  1. That's it. It's up to you to add what you want your NPCs to do.

This sends a event to the NPC to let you write custom fire and forget logic for them
Click to zoom in
This simulates a crowd talking to each other.