As an example here is some code that doesn't work.
Code: Select all
for i, ammo in pairs(data.raw.ammo) do
ammo.magazine_size = settings.global["magazine_size"].value
end
Code: Select all
for i, ammo in pairs(data.raw.ammo) do
ammo.magazine_size = settings.global["magazine_size"].value
end
Much appreciated.Rseding91 wrote:If you want to change prototype values with settings you need to use the startup setting type.
Global settings can be changed runtime which means they can't be used to build prototypes since prototypes can't be changed runtime.
Code: Select all
setting_type = "runtime-global"
Code: Select all
setting_type = "startup"