I was wondering, how to change AI traffic vehicles. I know the limit is 5 vehicles. But how do you manually change the 5 traffic vehicles? I don't know what files you have to modify so I need help. And no, I haven't modified the traffic yet because I don't know where the traffic files are. Thanks.
- jcilley97 -
How do you change traffic vehicles?
Posted in Support
Please login to contribute to the conversation.
jcilley97 I was wondering, how to change AI traffic vehicles. I know the limit is 5 vehicles. But how do you manually change the 5 traffic vehicles? I don't know what files you have to modify so I need hel
Loren In each leveli.mfk there's a part that looks like this:
CreateTrafficGroup(0);
AddTrafficModel(carname, amount, no_park);
CloseTrafficGroup( );
- carname: The name of the car (it has to be loa
In each leveli.mfk there's a part that looks like this:
- carname: The name of the car (it has to be loaded in level.mfk first)
- amount: The amount of the car. This can be up to 5, and the combined total of each call to AddTrafficModel can not be more or less than 5.
- no_park: Sets whether or not the car can appear parked in parking spaces and driveways. 0 = Can appear parked, 1 = Can only be part of traffic.
CreateTrafficGroup(0); AddTrafficModel(carname, amount, no_park); CloseTrafficGroup( );
- carname: The name of the car (it has to be loaded in level.mfk first)
- amount: The amount of the car. This can be up to 5, and the combined total of each call to AddTrafficModel can not be more or less than 5.
- no_park: Sets whether or not the car can appear parked in parking spaces and driveways. 0 = Can appear parked, 1 = Can only be part of traffic.