VoidExpanse/scope-config: Difference between revisions
Atomic-admin (talk | contribs) (Created page with "{{Scripting_api|GetFlag| * String: name| Boolean - whether the flag is set or not.| Returns a boolean server flag value by name. Basically used to read server config options.|...") |
Atomic-admin (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
* String: name| | * String: name| | ||
Boolean - whether the flag is set or not.| | Boolean - whether the flag is set or not.| | ||
Returns a boolean server flag value by name. Basically used to read server config options.| | var a = config.GetFlag("some_var");| | ||
Returns a boolean server flag value by name. Basically used to read server config options. | |||
}} | |||
{{Scripting_api|GetValue| | |||
* String: name| | |||
Mixed - a particular value of config.| | |||
var a = config.GetValue("some_var");| | |||
Returns a server variable value by name. Basically used to read server config options. Standard return types are string, integer, float, etc. | |||
}} | }} |
Revision as of 07:31, 12 February 2014
GetFlag | ||
---|---|---|
Arguments | Returns | Example |
|
Boolean - whether the flag is set or not. |
Returns a boolean server flag value by name. Basically used to read server config options. |
Description | ||
{{{5}}} |
GetValue | ||
---|---|---|
Arguments | Returns | Example |
|
Mixed - a particular value of config. |
Returns a server variable value by name. Basically used to read server config options. Standard return types are string, integer, float, etc. |
Description | ||
{{{5}}} |