This command sets the current traffic group when resuming a stage from a checkpoint.
Scope
This command should be called between calls to AddStage and CloseStage in a mission's initialisation script.
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 the Custom Traffic Support hack to be enabled as well as actually defining multiple traffic groups to have any noticeable effect.