From da47d3daab78cbd095539688d36cd2ccd68f185c Mon Sep 17 00:00:00 2001 From: Valansch Date: Sun, 12 Nov 2017 19:37:02 +0100 Subject: [PATCH] Added name to spyshot screenshot and changed zoom to 0.5 --- custom_commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_commands.lua b/custom_commands.lua index b553b2c1..4f029c1f 100644 --- a/custom_commands.lua +++ b/custom_commands.lua @@ -450,7 +450,7 @@ local function spyshot(cmd) table.insert(pseudo_ghosts, pseudo_ghost) ghost.destroy() end - game.take_screenshot{by_player = spy, position = pos, show_gui = false, show_entity_info = true, resolution = {1920, 1080}, anti_alias = true, zoom = 1} + game.take_screenshot{by_player = spy, position = pos, show_gui = false, show_entity_info = true, resolution = {1920, 1080}, anti_alias = true, zoom = 0.5, path ="spyshot.png"} game.players[spy].print("You just took a screenshot!") Thread.set_timeout(2, custom_commands_replace_ghosts, {ghosts = pseudo_ghosts, surface_index = game.players[player_name].surface.index}) --delay replacements for the screenshot to render return