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

SetObjThreshold

Set a threshold for the insidetrigger / outsidetrigger objectives.

Context

This command should be called between calls to AddObjective and CloseObjective.

Syntax

SetCondThreshold( threshold );

Game.SetCondThreshold( threshold )

  • threshold: The amount of time the player must be inside or outside the trigger to pass the objective.
    • Defaults to 0.

Examples

AddObjective("insidetrigger");
	SetObjTrigger("z2phone1");

	// Require the player to be inside that trigger for 10 seconds to pass.
	SetObjThreshold(10);
CloseObjective();

Game.AddObjective("insidetrigger")
	Game.SetObjTrigger("z2phone1")

	-- Require the player to be inside that trigger for 10 seconds to pass.
	Game.SetObjThreshold(10)
Game.CloseObjective()

Notes

No additional notes.

Version History

1.18

Added this command.

Donut Team © 2020 · v4.0