Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Additional Script Functionality > MFK Commands > Conditions > SetCondTotal

SetCondTotal

Set the total amount required to fail collectcoins, collectwrench, destroycars, hitpeds and jump conditions.

Context

This command should be called between calls to AddCondition and CloseCondition.

Syntax

SetCondTotal( total );

Game.SetCondTotal( total )

  • total: The total amount required to fail the condition.

Examples

AddCondition("jump");
	// Jump 3 times
	SetCondTotal(3);
CloseCondition();

Game.AddCondition("jump")
	-- Jump 3 times
	Game.SetCondTotal(3)
Game.CloseCondition()

Notes

No additional notes.

Version History

1.18

Added this command.

Donut Team © 2024 · v4.0