IsGameDevMode

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
IsGameDevMode

Type: Function
Context: Client
Introduced: v1.0

Description

Checks whether the game is in development mode. The development mode can be enabled by passing the -dev argument to the game executable.

Syntax

IsGameDevMode()

Parameters

  • This function has no parameters.

Return Value

  • Returns true if the game was started with the -dev switch.

Example

if IsGameDevMode() then
    -- some action
end

See also