https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.get_output_inventory wrote:Gets the entities output inventory if it has one.
-> Thanks, fixed.
https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.get_output_inventory wrote:Gets the entities output inventory if it has one.
Code: Select all
/c
for k,v in pairs(game.tile_prototypes) do
local items_to_place_this = v.items_to_place_this
if not items_to_place_this then
game.print(k.." has no items_to_place_this")
break
end
end
Code: Select all
miningtime :: double
miningparticle :: string?
The bounding box defining the highlight box using absolute map coordinates. If specified, the position parameter is ignored, but needs to be present anyways. If not specified, the game falls back to the source parameter first, then the target parameter second. One of these three parameters need to be specified.
Code: Select all
/c
local player = game.player
local surface = player.surface
surface.create_entity{
name = "highlight-box",
target = player.character,
time_to_live = 600,
}
Code: Select all
/c
local player = game.player
local surface = player.surface
surface.create_entity{
name = "highlight-box",
position = {0,0},
target = player.character,
time_to_live = 600,
}
Silari wrote: ↑Sun Jun 05, 2022 9:15 pm Documentation for the Technology prototype's unit property's count_formula needs a word removed. https://wiki.factorio.com/Prototype/Technology#unit
That implies it only works on infinite techs, but count formula works perfectly fine on any technology, including infinite, finitely leveled, or non-leveled (upgrade=false, ie the default). Non-leveled techs just use 1 for the level."Formula that specifies how many units are needed per level of the infinite technology."
lyvgbfh wrote: ↑Tue Jun 07, 2022 10:17 am Prototype/ArtilleryWagon has a proper description for `.gun` but Prototype/ArtilleryTurret claims gun is an "item".
https://wiki.factorio.com/Prototype/ArtilleryWagon
https://wiki.factorio.com/Prototype/ArtilleryTurret
This event is not raised when the vehicle is destroyed and the player consequently ejected.