IsGameDevMode: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|Checks whether the game is in development mode. The development mode can be enabled by passing the -dev argument to the game ex...")
 
No edit summary
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang='Lua'>
if IsGameDevMode() then
    -- some action
end
<syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
__EDIT_ME__

Revision as of 18:38, 12 February 2020

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__