# Name Of Difficulty Level
Grammar — Name of difficulty level difficulty
Flags —Native
|Function
Returns the name of the difficulty level.
# Arguments
int
[ difficulty ] — Difficulty
Returns — text
native text DifficultyName(int inDifficulty);
# Related
Category: Player / Difficulty Levels
- [F] —
void
— Set Player Difficulty Level — ( PlayerSetDifficulty ) - [F] —
int
[ difficulty ] — Difficulty Level For Player — ( PlayerDifficulty ) - [F] —
bool
— Difficulty Level Is Enabled — ( DifficultyEnabled ) - [F] —
text
— Name Of Difficulty Level — ( DifficultyName ) - [F] —
text
— Name Of Campaign Difficulty Level — ( DifficultyNameCampaign ) - [F] —
int
— APM Of Difficulty Level — ( DifficultyAPM )
# Examples
# mods/starcoop/starcoop.sc2mod
// L2919
DifficultyName(lv_difficulty)
# mods/starcoop/starcoop.sc2mod
// L796
DifficultyName(libCOMI_gf_DifficultyLevelForPlayerCoop(1))
// L797
DifficultyName(libCOMI_gf_DifficultyLevelForPlayerCoop(2))
// L802
DifficultyName(libCOMI_gf_DifficultyLevelForPlayerCoop(1))
// L803
DifficultyName(libCOMI_gf_DifficultyLevelForPlayerCoop(2))