Garry's Mod Wiki

game.SetSkillLevel

game.SetSkillLevel( number level )

Description

Sets the difficulty level of the game, can be retrieved with game.GetSkillLevel.

This will automatically change whenever the "skill" convar is modified serverside.

This function will not work if the skill convar doesn't match the targeted value. To work around this, you must use RunConsoleCommand("skill", num) alongside this function.

Arguments

1 number level
The difficulty level, Easy( 1 ), Normal( 2 ), Hard( 3 ).

Page Links


Special Pages


Wikis

?

Render Time: 33ms

DB GetPage 5
Generate Html 3
SaveChanges (1) 15
Render Body 0
Render Sidebar 8