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

SetObjSpeedKMH

Set the speed required for a reachspeed objective.

Context

This command should be called between calls to AddObjective and CloseObjective.

Syntax

SetObjSpeedKMH( target_speed );

Game.SetObjSpeedKMH( target_speed )  

  • target_speed: The speed required for the objective.

Examples

AddObjective("reachspeed");
	SetObjSpeedKMH(120);
CloseObjective();

Game.AddObjective("reachspeed")
	Game.SetObjSpeedKMH(120)
Game.CloseObjective()

Notes

No additional notes.

Version History

1.18

Added this command.

Donut Team © 2020 · v4.0