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

SetCondSpeedRangeKMH

Set a speed range for maintainspeed conditions.

Context

This command should be called between calls to AddCondition and CloseCondition.

Syntax

SetCondSpeedRangeKMH( lower_limit, upper_limit );

Game.SetCondSpeedRangeKMH( lower_limit, upper_limit )

  • lower_limit: The lowest speed the player is allowed to go.
    • You can use 0 to have no lower limit.
  • upper_limit: The highest speed the player is allowed to go.

Examples

AddCondition("maintainspeed");
	SetCondSpeedRangeKMH(90, 150);
CloseCondition();

Game.AddCondition("maintainspeed")
	Game.SetCondSpeedRangeKMH(90, 150)
Game.CloseCondition()

Notes

No additional notes.

Version History

1.18

Added this command.

Donut Team © 2023 · v4.0