Donut Team is a labor of love, built and maintained by a small group of passionate developers. We invest our own time and resources to offer our tools, mods, and web services completely free of charge.

We don't run ads, and we will never sell your data - period.

If you've enjoyed anything we've created, please consider supporting our work with a one-time or monthly donation via our Ko-fi page . Every contribution helps us continue building great experiences for the community.

Dismiss
  • Modding Tools
  • Lucas' Simpsons Hit & Run Mod Launcher
  • Hacks
  • Mod Requirable Hacks
  • Additional Script Functionality
  • Console Commands
  • MFK Commands
  • Mission Initialisation
  • Stages

SetStageCharacterModel

Available since Version 1.18.

Set the player character's model for the stage.

Scope

This command should be called between calls to AddStage and CloseStage in a mission's initialisation script.

Syntax

MFK
Lua
SetStageCharacterModel( model, [animation_set] );
Game.SetStageCharacterModel( model, [animation_set] )
  • model: The character model to use.
  • animation_set: The animation set to use.
    • Optional, defaults to the current player character's animation set as of 1.19.
    • Using anything else can cause issues.

Examples

MFK
Lua
AddStage();
    // Switch to Homer's Muumuu costume for the stage.
	SetStageCharacterModel("h_fat");

	AddObjective("dummy");
    CloseObjective();
CloseStage();
Game.AddStage()
    -- Switch to Homer's Muumuu costume for the stage.
	Game.SetStageCharacterModel("h_fat")

	Game.AddObjective("dummy")
    Game.CloseObjective()
Game.CloseStage()

Notes

No additional notes.

Version History

Version 1.19

Updated to default the second argument to SetStageCharacterModel to default the player's current animation set instead of requiring the argument.

Version 1.18.1

Fixed an issue where calling SetStageCharacterModel in a stage that also calls RESET_TO_HERE that is preceded by another stage that calls this command (with the same model and animation set) didn't work.