This command creates a traffic group that can be populated with subsequent calls to AddTrafficModel.
This command should be called in a level's initialisation script (leveli.mfk).
CreateTrafficGroup( index );
Game.CreateTrafficGroup( index )
- index: The index of the traffic group.
CreateTrafficGroup(0); AddTrafficModel("pizza", 5); CloseTrafficGroup();
Game.CreateTrafficGroup(0) Game.AddTrafficModel("pizza", 5) Game.CloseTrafficGroup()
By default, the game only supports a single traffic group with an index of 0.