LuaControl.can_place_tile
- protocol_1903
- Filter Inserter

- Posts: 388
- Joined: Fri Sep 09, 2022 4:33 pm
- Contact:
LuaControl.can_place_tile
Same as LuaControl.can_place_entity but for tiles, to run easier checks on normal tile buildability rules
Py and PyBlock developer, wielder of LUA in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
https://mods.factorio.com/user/protocol_1903
Re: LuaControl.can_place_tile
Surely you'd want can_place_tiles more. I don't imagine it's often the case that you want to check only a single tile.
(also, can_place_entity is found in LuaPlayer and LuaSurface, not in LuaControl; I'd expect you want the tile function for both)
(also, can_place_entity is found in LuaPlayer and LuaSurface, not in LuaControl; I'd expect you want the tile function for both)
Re: LuaControl.can_place_tile
By placing a given tile it may make placing another invalid (tile placement rules can require you do not build within x distance of another tile). So can place tiles is not likely to be super useful.
If you want to get ahold of me I'm almost always on Discord.
