How to add multiple cars to traffic spawner?

I am trying to build a traffic system with multiple cars by following this tutorial - https://www.youtube.com/watch?v=RRWr_Hnn5Bg&t=902s

Its working but the tutorial only shows how to add 1 car to the traffic system. How do I add more cars?

I duplicated my sedan car blueprint and replaced the mesh with a van. Now i have bp_sedan and bp_van. I also have 2 data assets; carAgent_sedan in which I have selected bp_sedan and carAgent_van with bp_van selected.

Now, in the Mass Spawner, under Spawn I have 2 entity types - Index 0 has carAgent_sedan (proportion 0.5) and Index 1 has carAgent_van (proportion 0.5).

under Spawn Data Generators I have Mass Traffic Vehicle Spawn Data Generator as generator Instance. Nothing for Vehicle type spacings.

When I simulate, only bp_sedan shows up in the traffic. The only way to spawn bp_van is to set bp_sedan’s proportion to 0. But setting it to 0.1 again only spawns bp_sedan with no spawns for bP-van.

Can someone please help?

Hi AlexMurphy001, Let me help you with this. Duplicate the LowresCar blueprint and rename it as per convenience, Replace the car meshes in the blueprint, save & exit. Duplicate CarAgent Data asset, replace the Low Res Template actor under Traffic vehicle visualisation with the duplicated car blueprint. Under Traffic Vehicle Simulation, replace the Physics Vehicle Template Actor with the respective car blueprint that came with the City Sample Vehicles pack. Save and exit. Under the details panel of Mass Spawner placed in the level, add a new element in the Entity Types under the spawn dropdown. There should be 2 elements under Enitity Types- index [0] and index [1]. Open the drop down menu of index [1], and select the newly made Data Asset of the second Vehicle as Entity Config. Specify the proportions of the number of this vehicle to all vehicles under this spawner. Save All & press Simulate.

If you’ve done all of this and the second vehicle still doesn’t spawn, check if Mass Traffic Vehicle Spawn Data Generator is correctly processing multiple entity types. Otherwise, try increasing the total traffic volume to see if the second vehicle appears.

You may need to check the vehicle configuration and the Mass Traffic setup, not just the proportions in the Mass Spawner. Make sure both carAgent_sedan and carAgent_van are configured correctly and that bp_van uses the required Mass Traffic components and settings.

Also, check whether the Vehicle Type Spacings settings or the Mass Traffic Vehicle Spawn Data Generator are overriding which vehicle types can spawn. A 0.5 proportion should generally allow both entity types to be selected, assuming both are valid and compatible with the traffic system.

One thing worth testing is to temporarily increase the van’s proportion to 0.9 and the sedan’s to 0.1. If only sedans still appear, the issue is likely with the van’s configuration or how its entity type is being processed rather than the proportions themselves.