Clarify MapPosition (concepts)

befzz
Burner Inserter
Burner Inserter
Posts: 9
Joined: Mon Jul 18, 2016 5:08 pm
Contact:

Clarify MapPosition (concepts)

Post 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 181 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
Bilka
Factorio Staff
Factorio Staff
Posts: 3906
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Clarify MapPosition (concepts)

Post by Bilka »

Thanks for the note, added the info of the read format for the next doc version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Resolved Requests”