Community Forum

Amount of cars (npc)

Forum Overview >> Editor

CategoryEditor
Created20.03.2022 18:12


Endre Holmboe (Outern88) 20.03.2022 18:12
Hello

Is there a way to controll (reduce) the amount of cars that follow/use a spline? I would like to make some splines have less traffic then others.

Best regards :)

Ed Propsner (crotchfrog) 21.03.2022 03:14
I haven't really toyed with traffic density so I'm not sure if this is the correct approach or not, but you can try to edit the "probability" value in trafficSystem.xml. Either raise or lower the value accordingly depending on your requirements. Like I said, it may not be what you're looking for but it's worth a play around until someone comes along with the correct way to do it.

You can make custom traffic systems by using the original traffic system as a reference and then point to your newly created file or files in the user attributes. I know you can alter speeds within a loop but I'm not sure about the density, you may have to do that per loop. Once you create a new loop, have it point to the new traffic system you created.

Sorry, this is a bit vague but I'm short on time at the moment. There are people here that know lots about this so I'm sure someone else will have some great ideas, if not I can try to get into more specifics when I get a little more time.


Note: Log in to post. Create a new account here.