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

SetStageCharacterModel

Set the player character's model for the stage.

Context

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

Syntax

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

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

1.19

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

1.18.1

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

1.18

Added this command.

Donut Team © 2024 · v4.0