game.GetGlobalState

From Garry's Mod
Jump to: navigation, search
 game.GetGlobalState( )

Description

Returns whether a Global State is off, active or dead ( inactive )

See Global States for more information.

Arguments

string name

The name of the Global State to retrieve the state of.

If the Global State by that name does not exist, GLOBAL_DEAD will be returned.

See Global States for a list of default global states.

Returns

number

The state of the Global State. See GLOBAL_ Enums
Personal tools
Navigation