VoidExpanse/scope-items: Difference between revisions

From AtomicTorchWiki
(Created page with "<noinclude> Category:VoidExpanse/api_scopes </noinclude> = Config scope = Used to get access to server variables from config file. '''Visibility:''' Global. == List of f...")
 
No edit summary
Line 2: Line 2:
[[Category:VoidExpanse/api_scopes]]
[[Category:VoidExpanse/api_scopes]]
</noinclude>
</noinclude>
= Config scope =
= Items scope =
Used to get access to server variables from config file.
Used to access items containers, add or remove items.


'''Visibility:''' Global.
'''Visibility:''' Global.

Revision as of 08:30, 20 April 2015


Items scope

Used to access items containers, add or remove items.

Visibility: Global.

List of functions

GetSetting
Arguments Returns Example
  • string: name

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.