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

SetStageVehicleReset

Sets whether or not an AI car will automatically reset onto the road if it's off for too long in certain objective types (such as evade).

Context

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

Syntax

SetStageVehicleReset( stage_vehicle_name, reset );

Game.SetStageVehicleReset( stage_vehicle_name, reset )

stage_vehicle_name: The name of the stage vehicle. reset: Set whether or not it should have this behaviour. The default depends on the type of behaviour the AI vehicle is using.

Examples

AddStage();
	AddStageVehicle("cNerd","m3_nerd_start", "evade");
	SetStageVehicleReset("cNerd", 0);

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

Game.AddStage() 	
	Game.AddStageVehicle("cNerd","m3_nerd_start", "evade")
	Game.SetStageVehicleReset("cNerd", 0)

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

Notes

No additional notes.

Version History

1.18

Added this command.

Donut Team © 2024 · v4.0