[1.0.0] becoming spectator makes "player.opened=nil" but not fires "on_gui_closed" event
Posted: Thu Aug 20, 2020 4:47 am
becoming spectator using
closes built-in guis and makes "player.opened = nil" but not fires event "on_gui_closed".
So, CustomGuiElements relying on "on_gui_closed" event still covers screen and doesn't answer to escape key after some situations.
is this intended?
Code: Select all
player.character.destroy() -- or
player.set_controller{type = defines.controllers.spectator} --or other ghost modes...
player.character.die() -- or just killed by something and lose body
So, CustomGuiElements relying on "on_gui_closed" event still covers screen and doesn't answer to escape key after some situations.
is this intended?