Get cursor position

Place to get help with not working mods / modding interface.
Post Reply
ripgeneral
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Sep 11, 2015 4:29 pm
Contact:

Get cursor position

Post by ripgeneral »

game,player.cursor_position returns
LuaPlayer doesn't contain key cursor_position.
Any Ideas ?

SirRichie
Fast Inserter
Fast Inserter
Posts: 244
Joined: Wed Feb 25, 2015 4:50 pm
Contact:

Re: Get cursor position

Post by SirRichie »

At the moment, it is a write-only property: https://forums.factorio.com/wiki/inde ... Lua/Player

So you are out of luck. You can get the in-world position of the entity under the cursor, but not the cursor position itself.

Post Reply

Return to “Modding help”