Games > The Simpsons Hit & Run > Console File Commands > MFK Commands > Objectives > SetHUDIcon

SetHUDIcon

This command should be called between calls to AddStage and CloseStage.

Syntax

SetHUDIcon( icon_name );

Game.SetHUDIcon( icon_name )

  • icon_name: The name of the sprite to use as a HUD icon.
    • If the p3d file containing this sprite is not loaded when the stage is reached, then no HUD icon will be used.

Examples

SelectMission("m3");
	...
	AddStage();
		SetHUDIcon("simpsons");
		AddObjective("dummy");
			...
		CloseObjective();
	CloseStage();
CloseMission();

Game.SelectMission("m1")
	...
	Game.AddStage()
		Game.SetHUDIcon("simpsons")
		Game.AddObjective("dummy")
			...
		Game.CloseObjective()
	Game.CloseStage()
Game.CloseMission()

Notes

No additional notes.

Donut Team © 2024 · v4.0