hide/close all open windows

Things that already exist in the current mod API
Post Reply
mophydeen
Filter Inserter
Filter Inserter
Posts: 529
Joined: Sun Nov 22, 2015 5:02 pm
Contact:

hide/close all open windows

Post by mophydeen »

I'd like a way to close all windows a player has open at once.

eg.
- train windows
- factory windows
- inventory
-...

Rseding91
Factorio Staff
Factorio Staff
Posts: 13219
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: hide/close all open windows

Post by Rseding91 »

Code: Select all

game.player.opened = nil
If you want to get ahold of me I'm almost always on Discord.


Post Reply

Return to “Already exists”