Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Additional Script Functionality > Objective Types > destroycars

destroycars

This type of objective requires the player to destroy one or more cars to pass the stage.

Examples

AddObjective("destroycars");
	// Optional: Specify specific car models the player must destroy. Defaults to all cars.
	AddObjTargetModel("minivanA");
	AddObjTargetModel("glastruc");

	// Optional: Specify the amount of cars the player must destroy. Defaults to 1.
	SetObjTotal(3);
CloseObjective();

Game.AddObjective("destroycars")
	-- Optional: Specify specific car models the player must destroy. Defaults to all cars.
	Game.AddObjTargetModel("minivanA")
	Game.AddObjTargetModel("glastruc")

	-- Optional: Specify the amount of cars the player must destroy. Defaults to 1.
	Game.SetObjTotal(3)
Game.CloseObjective()

Notes

No additional notes.

Version History

1.18

Added this objective type.

Donut Team © 2020 · v4.0