But I found that after the modification in the game, only the administrator has the effect, and others are invalid. How can I modify it to make it effective for everyone?script.on_event(defines.events.on_runtime_mod_setting_changed, function(event)
local player = game.players[event.player_index]
layer.character_running_speed_modifier = settings.global["running_speed_modifier"].value
end)
It's better to be more detailed, because I don't know anything about multiplayer games: (thank you
By the way, the second question: is there an instruction that can detect whether the current game is a "stand-alone game" or a "multiplayer game"?