IsGameDevMode

From Onset Developer Wiki
Revision as of 18:38, 12 February 2020 by 28days (talk | contribs)
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

<syntaxhighlight lang='Lua'> if IsGameDevMode() then

   -- some action

end <syntaxhighlight>

See also

__EDIT_ME__