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

collectwrench

This type of objective requires the player to collect a wrench to pass the stage.

Examples

AddObjective("collectwrench");
	// Optional: Set the amount of wrenches the player has to collect. Defaults to 1.
	SetObjTotal(1);
CloseObjective();  

Game.AddObjective("collectwrench")
	-- Optional: Set the amount of wrenches the player has to collect. Defaults to 1.
	Game.SetObjTotal(1)
Game.CloseObjective()

Notes

No additional notes.

Version History

1.18

Added this objective type.

Donut Team © 2023 · v4.0