VoidExpanse/scope-items: Difference between revisions

From AtomicTorchWiki
No edit summary
Line 9: Line 9:
== List of functions ==
== List of functions ==


{{Scripting_api|GetSetting|
{{Scripting_api|AddItem|
* string: name|
* string: name|
string- a particular value of config.|
string- a particular value of config.|

Revision as of 08:40, 20 April 2015


Items scope

Used to access items containers, add or remove items.

Visibility: Global.

List of functions

AddItem
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.