[2.0.x] How to set the zoom for a remote view map?

Place to post guides, observations, things related to modding that are not mods themselves.
User avatar
hgschmie
Inserter
Inserter
Posts: 38
Joined: Tue Feb 06, 2024 5:18 am
Contact:

[2.0.x] How to set the zoom for a remote view map?

Post by hgschmie »

So player.zoom_to_world(position, zoom) is gone and I figured out that I can replace it with
player.set_controller {
type = defines.controllers.remote,
position = entity.position,
surface = entity.surface,
}
all good. But the map opens at a fixed zoom factor. In the old code, I could set the zoom factor (see above). How do I do that in 2.0?
Post Reply

Return to “Modding discussion”