Available since Version 1.18.
Set a speed range for the maintainspeed condition.
Scope
This command should be called between calls to AddCondition and CloseCondition in a mission's initialisation script.
Syntax
MFK
Lua
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
0to have no lower limit.
- You can use
- upper_limit: The highest speed the player is allowed to go.
Examples
MFK
Lua
AddCondition("maintainspeed");
SetCondSpeedRangeKMH(90, 150);
CloseCondition();Game.AddCondition("maintainspeed")
Game.SetCondSpeedRangeKMH(90, 150)
Game.CloseCondition()