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.
How do I read the contents of tiles near the player?
-
- Manual Inserter
- Posts: 4
- Joined: Fri Mar 01, 2019 11:08 pm
- Contact:
Re: How do I read the contents of tiles near the player?
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
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
-
- Manual Inserter
- Posts: 4
- Joined: Fri Mar 01, 2019 11:08 pm
- Contact: