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

SetStageAllowMissionCancel

Set whether or not the player is allowed to restart or cancel the mission during the stage.

Context

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

Syntax

SetStageAllowMissionCancel( allow );

Game.SetStageAllowMissionCancel( allow )

  • allow: Whether or not to allow the player to restart or cancel the mission.
    • Defaults to 1 / true.

Examples

AddStage();
	SetStageAllowMissionCancel(0);
	
	AddObjective("dummy");
	CloseObjective();
CloseStage();

Game.AddStage()
	Game.SetStageAllowMissionCancel(0)
	
	Game.AddObjective("dummy")
	Game.CloseObjective()
Game.CloseStage()

Notes

No additional notes.

Version History

1.18.1

Added this command.

Donut Team © 2023 · v4.0