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

hitpeds

Fail the player if they kick pedestrians.

Examples

AddCondition("hitpeds");
	// Optional: Specify specific characters. Defaults to all characters.
	AddCondTargetModel("marge");
	AddCondTargetModel("bart");

	// Optional: Specify the amount of times they're allowed to kick pedestrians. Defaults to 1.
	SetCondTotal(3);
CloseObjective();

Game.AddCondition("hitpeds")
	-- Optional: Specify specific characters. Defaults to all characters.
	Game.AddCondTargetModel("marge")
	Game.AddCondTargetModel("bart")

	-- Optional: Specify the amount of times they're allowed to kick pedestrians. Defaults to 1.
	Game.SetCondTotal(3)
Game.CloseObjective()

Notes

This type of objective is not advanced by hitting pedestrians with a car.

Version History

1.18

Added this condition type.

Donut Team © 2023 · v4.0