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

SetCheckpointResetPlayerOutCar

This command makes the player reset on foot 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

SetCheckpointResetPlayerOutCar( player_locator, car_locator );

Game.SetCheckpointResetPlayerOutCar( player_locator, car_locator )

  • player_locator: The name of a Type 3 Locator that the player character will spawn on.
  • car_locator: The name of a Type 3 Locator that the player's car will spawn on.

Examples

AddStage();
	CHECKPOINT_HERE();
	SetCheckpointResetPlayerInCar("level1_homer_start", "level1_carstart");

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

Game.AddStage()
	Game.CHECKPOINT_HERE()
	Game.SetCheckpointResetPlayerInCar("level1_homer_start", "level1_carstart")

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

Notes

No additional notes.

Version History

1.25

Added this command.

Donut Team © 2024 · v4.0