How to use the AC_NPCTrafficSettings component
This page covers how to use the features of the plugin in blueprints. The logic in C++ should be the same.
Optimizing your pawn:
Find the optimizing tab on your pawn, for singleplayer games I recommend using the CPP optimizer tick.
Add your optimization settings to the 3 array items with tier start and stop distance set. you can see demo content for ideal settings.
To update manually with blueprints, you can call the Update Optimizations Blueprint function on a timer.

That is it, you will now have optimized traffic automatically once these details are filled out. ensure you have added the Vehicle Mesh tag to your car as well or this wont work.
Using the Tags:
This component uses tags to detect components, be sure to add these tags to each component they represent. The main one you need is the Vehicle Mesh Tag applied to your mesh component of the car.

Using Brake lights and Head Lights:
Go to the details panel and find the headlights or brake lights section, fill it out.
Here is an example of a filled out details panel. For the sockets you will need to add them to your skeletal mesh.

Controlling the Traffic Behavior:
To adjust things such as braking factor, turn rates, and other traffic behaviors, you can adjust these settings in the component.

How to debug:
This plugin comes with debug tools to see what AI are doing, you can enable this under the tracing section of the component.

This section also controls the trace channel for traffic lights.
How to use the Honking Features:
You can enable honking whenever cars are stopped by something by using this section. it controls probability, the sound cue, and the wait.

If you want to adjust sound attenuation, concurrency, and other sound settings you will do that in the sound cue asset.
Need further support? Join the discord
We have a Discord that is open to everyone for support, You can join it here: https://discord.gg/GXZ7c74sTm
Last updated