Spectator view : size / zoom

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
ever_Lord
Inserter
Inserter
Posts: 20
Joined: Thu Apr 02, 2020 7:20 pm
Contact:

Spectator view : size / zoom

Post 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 :)

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3699
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Spectator view : size / zoom

Post 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.

ever_Lord
Inserter
Inserter
Posts: 20
Joined: Thu Apr 02, 2020 7:20 pm
Contact:

Re: Spectator view : size / zoom

Post by ever_Lord »

So simple, thanks ! ( i feel very newb xd)

ever_Lord
Inserter
Inserter
Posts: 20
Joined: Thu Apr 02, 2020 7:20 pm
Contact:

Re: Spectator view : size / zoom

Post 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) - )

Post Reply

Return to “Technical Help”