Page 1 of 1

Event when a mod setting is changed

Posted: Thu Dec 17, 2020 4:11 pm
by Lebster
I've got a mod setting with the setting_type global-runtime
It's a bool-setting

How can I run a function when the user modifies the value of the setting from the mod settings options category?

Re: Event when a mod setting is changed

Posted: Thu Dec 17, 2020 5:04 pm
by eradicator

Code: Select all

script.on_event(defines.events.on_runtime_mod_setting_changed, function(event)
  end)