> For the complete documentation index, see [llms.txt](https://docs.settlers-united.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.settlers-united.com/s4-lua-api-de/library-functions/game/game.getdifficulty.md).

# Game.GetDifficulty

## `Game.GetDifficulty()`

Prüft, welche Schwierigkeit eingestellt ist.

#### ACHTUNG: prüft nur LOKAL, welche Schwierigkeit eingestellt ist ⇒ haben Spieler im S4-Menü unterschiedliche Einstellungen, gibt es einen Desync!

#### Rückgabewert

0 für leicht, 1 für normal

#### Beispiel

```lua
local localDifficulty = Game.GetDifficulty()
```
