game,player.cursor_position returns
LuaPlayer doesn't contain key cursor_position.
Any Ideas ?
Get cursor position
-
- Manual Inserter
- Posts: 2
- Joined: Fri Sep 11, 2015 4:29 pm
- Contact:
Re: Get cursor position
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.
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.