IsGameDevMode

From Onset Developer Wiki
Revision as of 11:31, 1 September 2020 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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