Triggers a music state change upon reaching a stage.
Scope
This command should be called between calls to AddStage and CloseStage in a mission's initialisation script.
Syntax
MFK
Lua
SetMusicState( state_name, state_value );Game.SetMusicState( state_name, state_value );- state_name: The name of a State in the currently loaded music RadMusic script.
- state_value: The name of a value in the State.
Examples
MFK
Lua
AddStage();
AddObjective("dummy");
CloseObjective();
SetMusicState("Mission2", "Stage1");
CloseStage();Game.AddStage()
Game.AddObjective("dummy")
Game.CloseObjective()
Game.SetMusicState("Mission2", "Stage1")
Game.CloseStage()