Skip to content

SetPhotoModeMaxDistance

How far the game’s photo mode camera may fly from the player.

The game’s photo mode keeps its free camera within a few metres of the player; this lets it fly farther for wider shots, or keeps it closer. In metres, 1 to 10000; nil puts the game’s own distance back. A reload of the scripts and the end of the session put it back too.

SetPhotoModeMaxDistance(metres)
Parameter Type
metres number|nil the farthest the photo mode camera may go from the player; nil = the game’s own

boolean - false for a value that is not a number

SetPhotoModeMaxDistance(60) -- room for a shot of the whole market square

GetPhotoModeMaxDistance · the The game’s UI for a script group of the index