Home
Contents
Explore
Search

/c game.player.print(game.player.position.x .. ", " .. game.player.position.y)

Console Command
Command /c game.player.print(game.player.position.x .. ", " .. game.player.position.y)
Command Category Description Run Lua scripts. WARNING: The use of scripting and cheat commands will disable achievements. Please proceed with caution.
Description Get player position. Prints coordinates of your current position.
Example None
Admin None
Category
How To Use <p>The command console is Factorio's command-line interface, which can be used for running cheat commands, as well as chatting with other players and receiving occasional status updated. </p><p> To open the console, press the <span class="key">/</span> or <span class="ui tiny basic label">~</span> key. The <span class="ui tiny basic label">~</span> key is usually located below the <span class="ui tiny basic label">Esc</span> key. The <span class="ui tiny basic label">/</span> key is also usually the <span class="ui tiny basic label">?</span> key. </p><p> The console can accept raw Lua code as well as game commands. </p><p> Use the <span class="ui tiny basic label">Tab</span> key to auto-complete commands and player IDs. Enter the first few letters and then press the <span class="ui tiny basic label">Tab</span> key. </p><p> Disclaimer: Because commands can sometimes make unexpected changed to your game, it is recommended that you save your game before using any commands.</p>