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

collectcoins

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

Examples

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

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

Notes

No additional notes.

Version History

1.18

Added this objective type.

Donut Team © 2020 · v4.0