Skip to main content

Game

Game.SetFOV(value: number)

Sets the FOV of the game. The default value is 1.

Example usage:

Game.SetFOV(1.5)

Game.GetFOV(): number

Gets the current FOV of the game.

Example usage:

print(Game.GetFOV())

Game.GetState(): GameState

Gets the current state of the game. See GameState for a list of all possible game states.

Example usage:

print(Game.GetState() == GameState.MainMenu) -- Prints true or false