Function: GetSetting

Synopsis

Get the value of a setting in a mod.

Syntax

GetSetting( <setting_name>, [<mod_name>] )
  • setting_name: The name of the setting to get the value of.
  • mod_name: The mod you want to get the setting from from. Optional, defaults to the mod that called the function.

Examples

-- Get the difficulty setting of the current mod.
local Difficulty = GetSetting("Difficulty")

-- Check some other setting in another mod.
local SomeOtherSetting = GetSetting("SomeOtherSetting","AnotherMod")

Notes

No additional notes.

History

Unknown.


Revision #2
Created 1 week ago by Loren Goodwin
Updated 5 days ago by Loren Goodwin