ClassLuaSettings
Members
| get_player_settings(player) | → LuaCustomTable[string → ModSetting] | Gets the current per-player settings for the given player, indexed by prototype name. [...] |
Gets the current per-player settings for the given player, indexed by prototype name. [...] | ||
| startup | :: R LuaCustomTable[string → ModSetting] | The startup mod settings, indexed by prototype name. |
The startup mod settings, indexed by prototype name. | ||
| global | :: R LuaCustomTable[string → ModSetting] | The current global mod settings, indexed by prototype name. [...] |
The current global mod settings, indexed by prototype name. [...] | ||
| player_default | :: R LuaCustomTable[string → ModSetting] | The default player mod settings for this map, indexed by prototype name. [...] |
The default player mod settings for this map, indexed by prototype name. [...] | ||
| object_name | :: R string | The class name of this object. [...] |
The class name of this object. [...] | ||
Methods
get_player_settings(player) → LuaCustomTable[string → ModSetting]
Parameters
| player | :: PlayerIdentification |
Example
-- Change the value of the "active_lifestyle" setting
settings.get_player_settings(player_index)["active_lifestyle"] = {value = true}


