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 |
||
(2 intermediate revisions by one other user not shown) | |||
Line 11: | Line 11: | ||
== Example == | == Example == | ||
<syntaxhighlight lang='Lua'> | |||
if IsGameDevMode() then | |||
-- some action | |||
end | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
*[[GetGameVersion]] | |||
*[[IsGameDevMode]] | |||
*[[IsPlayerInMainMenu]] | |||
*[[InvokeDamageFX]] | |||
*[[UpdateDiscordActivity]] | |||
*[[ConnectToServer]] |
Latest revision as of 11:31, 1 September 2020
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