player.zoom is not readable only writable.
Could you make it both: rw ?
player.zoom w > rw?
Re: player.zoom w > rw?
viewtopic.php?f=28&t=15361
I don't think this has changed since then.Rseding91 wrote:player.zoom is a visual property and isn't saved in the game state. It was readable in the past and that was removed because it breaks multiplayer instantly if read.
Re: player.zoom w > rw?
Correct. Additionally I can't think of any reason you'd ever want to read the zoom value.daniel34 wrote:viewtopic.php?f=28&t=15361I don't think this has changed since then.Rseding91 wrote:player.zoom is a visual property and isn't saved in the game state. It was readable in the past and that was removed because it breaks multiplayer instantly if read.
If you want to get ahold of me I'm almost always on Discord.
Re: player.zoom w > rw?
So you could implement a "jump" zoom mechanism, read the current value, add 0.5 to it, write to it. Then you could press +\- and zoom in and out in your preferred increments.Rseding91 wrote:Additionally I can't think of any reason you'd ever want to read the zoom value.
You could also implement a toggle. Press "X", zoom out to super view, press X again, go back to previous view.
You could also implement a "save view" system like in many RPG's. press <alt> + <F1> save current view (requires location & zoom), press <F1> goto saved view, press <F1> again, return to character.
If you would like I could come up with another couple of reasons why someone would need more information.