VoidExpanse/scope-config: Difference between revisions
No edit summary |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
[[Category:VoidExpanse/api_scopes]] | [[Category:VoidExpanse/api_scopes]] | ||
</noinclude> | </noinclude> | ||
= | = Config scope = | ||
Used to | Used to get access to server variables from config file. | ||
'''Visibility:''' Global. | '''Visibility:''' Global. | ||
Line 10: | Line 9: | ||
== List of functions == | == List of functions == | ||
{{Scripting_api| | {{Scripting_api|GetSetting| | ||
* string: name| | |||
* string: | string- a particular value of config.| | ||
<pre style="margin:0px">var a = config.GetSetting("some_var");</pre>| | |||
Returns a server variable value by name. Basically used to read server config options from script. | |||
<pre style="margin:0px">var | |||
</pre> | | |||
}} | }} |
Latest revision as of 03:58, 5 July 2014
Config scope
Used to get access to server variables from config file.
Visibility: Global.
List of functions
GetSetting | ||
---|---|---|
Arguments | Returns | Example |
|
string- a particular value of config. |
var a = config.GetSetting("some_var"); |
Description | ||
Returns a server variable value by name. Basically used to read server config options from script. |