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

destroycars

Fail the player if they destroy one or more cars.

Examples

AddCondition("destroycars");
	// Optional: Specify specific car models the player will be penalised for. Defaults to all cars.
	AddCondTargetModel("glastruc");

	// Optional: Specify the total amount of cars they're allowed to destroy. Defaults to 1.
	SetCondTotal(2);
CloseCondition();

Game.AddCondition("destroycars")
	-- Optional: Specify specific car models the player will be penalised for. Defaults to all cars.
	Game.AddCondTargetModel("glastruc")

	-- Optional: Specify the total amount of cars they're allowed to destroy. Defaults to 1.
	Game.SetCondTotal(2)
Game.CloseCondition()

Notes

No additional notes.

Version History

1.18

Added this condition type.

Donut Team © 2023 · v4.0