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

SetObjMessageIndex

Set a message index for the insidetrigger / outsidetrigger objectives.

Context

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

Syntax

SetObjMessageIndex( message_index );

Game.SetObjMessageIndex( message_index )

  • message_index: The objective message index (just like SetStageMessageIndex) to use for the objective.

Examples

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

	// Show MISSION_OBJECTIVE_03 if the player enters the trigger.
	SetObjMessageIndex(3);
CloseObjective();

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

	-- Show MISSION_OBJECTIVE_03 if the player enters the trigger.
	Game.SetObjMessageIndex(3)
Game.CloseObjective()

Notes

No additional notes.

Version History

1.18

Added this command.

Donut Team © 2020 · v4.0