Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Additional Script Functionality > MFK Commands > Stages > Checkpoints > SetCheckpointTrafficGroup

SetCheckpointTrafficGroup

This command sets the current traffic group when resuming a stage from a checkpoint.

Context

This command should be called between calls to AddStage and CloseStage.

Additionally, this should be called alongside CHECKPOINT_HERE.

Syntax

SetCheckpointTrafficGroup( traffic_group );

Game.SetCheckpointTrafficGroup( traffic_group )

  • traffic_group: The index of the traffic group to use.

Examples

AddStage();
	CHECKPOINT_HERE();
	SetCheckpointTrafficGroup(7);

	AddObjective("dummy");
	CloseObjective();
CloseStage();

Game.AddStage()
	Game.CHECKPOINT_HERE()
	Game.SetCheckpointTrafficGroup(7)

	Game.AddObjective("dummy")
	Game.CloseObjective()
Game.CloseStage()

Notes

This requires the DynamicTraffic feature of Custom Traffic Support to be enabled as well as actually defining multiple traffic groups to have any noticeable effect.

Version History

1.25

Added this command.

Donut Team © 2024 · v4.0