Open yuyuyu223 opened 7 months ago
Hi,
to teleport the traffic away from the player, you can use the beamng.traffic.reset()
function.
AFAIK, the parameters for generating traffic flow are not exposed, but you can check the implementation of BeamNG.tech\lua\ge\extensions\gameplay\traffic.lua
and (possibly) edit it according to your needs.
I used the following code to generate traffic flow:
But the position of each traffic vehicle is almost fixed. I want to know how to generate a richer traffic flow state.
Is there an interface for inputting random seeds?
In addition, how to define the conditions for generating traffic flow, such as within a certain vicinity of an ego vehicle?