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

SetCheckpointPedGroup

This command sets the current ped 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

SetCheckpointPedGroup( ped_group );

Game.SetCheckpointPedGroup( ped_group )

  • ped_group: The index of the ped group to use.

Examples

AddStage();
	CHECKPOINT_HERE();
	SetCheckpointPedGroup(7);

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

Game.AddStage()
	Game.CHECKPOINT_HERE()
	Game.SetCheckpointPedGroup(7)

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

Notes

No additional notes.

Version History

1.25

Added this command.

Donut Team © 2023 · v4.0