Page 1 of 1

Clarify MapPosition (concepts)

Posted: Tue Sep 15, 2026 4:45 pm
by befzz
https://lua-api.factorio.com/2.1.17/con ... ition.html
09-15-2026, 19-38-08.png
09-15-2026, 19-38-08.png (52.4 KiB) Viewed 184 times
Needs clarification that game engine side does not GIVE array variant

Code: Select all

{double, double}
, but accept it.

I.e. When using

Code: Select all

type = "custom-input"
script.on_event provides:

Code: Select all

event.cursor_position[1] is nil
event.cursor_position.x is valid.
//experimental 2.1.17

Re: Clarify MapPosition (concepts)

Posted: Mon Sep 21, 2026 2:23 pm
by Bilka
Thanks for the note, added the info of the read format for the next doc version.