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

SetObjTrigger

Specify the locator whose triggers will be used for the insidetrigger/outsidetrigger objectives.

Context

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

Syntax

SetObjTrigger( locator_name );

Game.SetObjTrigger( locator_name )

  • locator_name: The name of the locator whose triggers will be used for the objective.

Examples

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

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

Notes

No additional notes.

Version History

1.18

Added this command.

Donut Team © 2024 · v4.0