#On today's episode of over engineered

1 messages · Page 1 of 1 (latest)

crude belfry
#

seriously, like how

#

that is so fucking cool but how

dusk veldt
#

Black magic

---This function sets the "autolaunch" checkbox on the rocket silo gui.
---This parameter is not exposed directly on `LuaEntity`.
---The workaround is to place a blueprint since the property is exposed on the blueprint string.
---@param rocket_silo_data RocketSiloData
local function enable_autolaunch(rocket_silo_data)
    local entity = rocket_silo_data.entity
    local inventory = game.create_inventory(1)
    inventory.insert {name = "blueprint"}
    local stack = inventory[1]
    stack.create_blueprint {
        surface = entity.surface_index,
        force = entity.force_index,
        area = {{0, 0}, {0, 0}},
        include_entities = false
    }
    stack.set_blueprint_entities {{
        entity_number = 1,
        name = entity.name,
        position = {
            x = 0,
            y = 0
        },
        launch_to_orbit_automatically = true -- Magic happens on this line.
    }}
    stack.build_blueprint {
        surface = entity.surface_index,
        force = entity.force_index,
        position = entity.position,
        skip_fog_of_war = false
    }
    inventory.destroy()
end
crude belfry
snow tundra
#

Is that an equipment to lock the slots to your special rocket design?

#

Utilizing the fact that equipment can be non-square

#

I love it so much
I want more mods using and abusing that fact

crude belfry
#

wow, thats the most pY thing i've ever seen

#

(the newest video)

dusk veldt
#

hrm it seems like the rocket entity is missing the "thrust" working sound

#

Most of the credit goes to @winter cipher . I just cleaned up the gui style a bit.