Mod:Creation Kit/OnDifficultyChanged - Actor

Member of: Mod:Creation Kit/Actor Script

Event sent to the player when the game's difficulty is changed.

Syntax
Event OnDifficultyChanged(int aOldDifficulty, int aNewDifficulty)

Parameters

 * aOldDifficulty - The difficulty we're changing from
 * aNewDifficulty - The difficulty we're changing to.

Examples
Event OnDifficultyChanged(int aOldDifficulty, int aNewDifficulty) if (aOldDifficulty == 6) && (aNewDifficulty != 6) Debug.Trace("Player no longer wants hardcore mode...") endEvent