Page 1 of 1

LuaSurface#can_place_entity : name is an EntityID

Posted: Mon Nov 18, 2024 6:35 pm
by hgschmie
In https://lua-api.factorio.com/latest/cla ... ace_entity, the `name` parameter is an EntityID

For https://lua-api.factorio.com/latest/cla ... ace_entity, `name` is documented as string. But it actually is an EntityID, one can pass an entity in there (ignoring the angry squiggly yellow lines in VSCode) and it works.

This seems to be a documentation problem, the actual functionality is fine.