Getting Setup

Quickly and easily set up traffic in your project using Blueprints by following this step-by-step guide.

Installing the Plugin to Unreal Engine

Follow these steps to get the plugin installed:

  1. Install the plugin via Epic Games Launcher vault. If you don't see it after purchasing on Fab, click the refresh button.

  1. Enable the plugin in the Unreal Plugin Window. To get here, go to edit->Plugins->Procedural NPC Traffic.

  1. Restart the engine editor to finish installing the plugin.

  2. That's it! The plugin should now be installed. Next, we need to set up the collision channels and find the demo content.

Using the Demo Content

  1. Click the Settings button in the content browser and select "Show Engine Content".

  2. Now look for the engine folder and find the Procedural NPC Traffic/AI Vehicle Traffic content folder, it may depend on what fab names it.

  3. Now open the demo content map.

  4. In the demo map, you can now play. To ensure traffic functions correctly, we need to set up collision channels

Setting up the Collision Channels:

  1. Navigate to the Project Settings window by selecting Edit → Project Settings from the top toolbar.

  2. Find the "Collision Category" and click on it.

  3. Under "Trace Channels," add two new options using the "+" button. Make sure you use this spelling.

  4. Trace Channels

    1. Pathpoints - Ignore

    2. TrafficLights - ignore

  5. Navigate to the required content folder within the plugin content directory and locate BP_TrafficWaypoint. Set it to block the Pathpoints trace channel.

  1. Navigate to the BP_TrafficLight actor in the necessary content and set its collision channel to block the TrafficLight trace channel.

  2. To update the behavior tree, add the new trace collision channels to the task properties. Review each task to ensure they have the correct trace channels.

  1. Finally, we need to go to the TrafficPawn and set the trace channels there.

  1. Thats it for setting up the plugin with the demo content, I will go over how to add to a custom level and change the car in the Walkthroughs section. Please read the important notes for common things people run into.

Last updated