GetDifficulty - Game

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Game Script

Returns the game's current difficulty.

Syntax[edit | edit source]

int Function GetDifficulty() native global

Parameters[edit | edit source]

None

Return Value[edit | edit source]

The game's current difficulty setting. 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

Examples[edit | edit source]

if Game.GetDifficulty() == 2
  Debug.Trace("Player is playing normal difficulty...")
endIf

See Also[edit | edit source]