Background for Fallout 4
Member of the Game script
intfunctionGetDifficulty()NativeGlobal

Description

Wiki Description

Returns the game's current difficulty.

Documentation Comment

Returns the game's current difficulty
Type is as follows:
0 - Very Easy
1 - Easy
2 - Normal
3 - Hard
4 - Very Hard
5 - Survival (no Hardcore) DEFUNCT
6 - Survival w/ Hardcore


Caveats


Examples

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

Auto-Generated Example

int returnedValue = Game.GetDifficulty()

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.