How do I read the contents of tiles near the player?

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
Assembling_machine_2
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Mar 01, 2019 11:08 pm
Contact:

How do I read the contents of tiles near the player?

Post by Assembling_machine_2 »

I was wondering if there was a way to see the contents of each tile in a radius around the player so I can teach an ANN to play
thanks.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: How do I read the contents of tiles near the player?

Post by Klonan »

You can use find entities fitered:
https://lua-api.factorio.com/latest/Lua ... s_filtered

You can give it a position and radius, and it will return all entities in that circle


Post Reply

Return to “Modding discussion”