OnDifficultyChanged - Actor

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

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

Syntax[edit | edit source]

Event OnDifficultyChanged(int aOldDifficulty, int aNewDifficulty)

Parameters[edit | edit source]

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

Examples[edit | edit source]

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

Notes[edit | edit source]

Difficulty settings are as follows:

  • 0 - Very Easy
  • 1 - Easy
  • 2 - Normal
  • 3 - Hard
  • 4 - Very Hard
  • 5 - Survival (no Hardcore) DEFUNCT
  • 6 - Survival w/ Hardcore

See Also[edit | edit source]