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.