Command to show Character screen

Place to get help with not working mods / modding interface.
Post Reply
NeilN
Long Handed Inserter
Long Handed Inserter
Posts: 51
Joined: Sun Mar 27, 2016 4:24 pm
Contact:

Command to show Character screen

Post by NeilN »

Is there a Lua command to show the character screen? I'd like to create a mod that adds a button to the shortcut bar that brings it up.

User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 489
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: Command to show Character screen

Post by Silari »

LuaControl.opened lets you read/write what a player has opened. If you want them to open the character screen, set it to that player.

Code: Select all

/c game.player.opened = game.player
in the console will make the player who runs it open their character window.

Post Reply

Return to “Modding help”