Page 1 of 1

Spectator view : size / zoom

Posted: Wed Aug 04, 2021 7:44 pm
by ever_Lord
Hi !
I'm looking a way to give spectators a larger view of the game than usually, like we have in /editor mode (where we can zoom out more than in player view)
- Only using scenario possibilities (not a mod, just a scenario : biter battles)
- There are 3 forces : "north", "south" and "spectators" and i can't find a way of "enlarge" view of specs without going into map view.

Is it possible ? Thanks :)

Re: Spectator view : size / zoom

Posted: Wed Aug 04, 2021 8:29 pm
by DaveMcW

Code: Select all

/c game.player.zoom = 0.05
For a scenario, you would have a /zoom command or button that does this when you click it.

Re: Spectator view : size / zoom

Posted: Thu Aug 05, 2021 2:29 pm
by ever_Lord
So simple, thanks ! ( i feel very newb xd)

Re: Spectator view : size / zoom

Posted: Thu Aug 05, 2021 5:41 pm
by ever_Lord
Well ... not that simple :
- game.player.zoom is write only, i cannot find a function to get value of game.players[event.player_index].zoom, is there a way to get it ?
edit :
- was not a problem (also i need to de-activate command in chat, so players can't "cheat" (/c game.player.zoom) - )