Games > The Simpsons: Hit & Run > Console File Commands > MFK Commands > Levels > Traffic > CloseTrafficGroup

CloseTrafficGroup

This command closes a traffic group.

Context

This command should be called in a level's initialisation script (leveli.mfk).

Additionally, this should only be called after a call to CreateTrafficGroup and at least one call to AddTrafficModel.

Syntax

CloseTrafficGroup();

Game.CloseTrafficGroup()

Examples

CreateTrafficGroup(0);
	AddTrafficModel("pizza", 5);
CloseTrafficGroup();

Game.CreateTrafficGroup(0)
	Game.AddTrafficModel("pizza", 5)
Game.CloseTrafficGroup()

Notes

No additional notes.

Donut Team © 2020 · v4.0