Add option to NOT reset zoom level when changing characters

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Kiplacon
Burner Inserter
Burner Inserter
Posts: 12
Joined: Tue Jan 16, 2018 8:14 pm
Contact:

Add option to NOT reset zoom level when changing characters

Post by Kiplacon »

I'm working on updating my mod Renai Transportation to the 2.0 API and in some situations I switch the player character for a copy that has no collision so that it doesn't hit/interrupt trains when using the zipline.

Previously, changing the character the player controls just shifted the camera over to the new character, but now the same command (player.character = "NewCharacter") resets the player's zoom level when control transfers to the new character. It's really jarring immersion-wise and unexpected since it wasn't like that before, so it'd be great if there was some way to preserve the zoom level when switching characters.

If there is already a way to do this I couldn't find it
Post Reply

Return to “Modding interface requests”