Access to if a rocket silo has a completed rocket

Things that already exist in the current mod API
Post Reply
User avatar
Cooldude2606
Long Handed Inserter
Long Handed Inserter
Posts: 86
Joined: Sat Sep 16, 2017 9:04 pm
Contact:

Access to if a rocket silo has a completed rocket

Post by Cooldude2606 »

The rocket_parts can be used to find the progress towards a rocket however when it has been complete it resets to 0 so there isnt really a way to test if there is a rocket in it or not. So could we have read access to the rocket silo status?
--- Developer for Explosive Gaming factorio community. Find our code on GitHub. Please contact me via our Discord. ---

Bilka
Factorio Staff
Factorio Staff
Posts: 3123
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Access to if a rocket silo has a completed rocket

Post by Bilka »

You can read its status using LuaEntity.status, it will be 21 if the rocket silo is waiting to launch the built rocket. I say 21 because the defines.entity_status is missing, I added it as waiting_to_launch_rocket for 0.17.44.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Already exists”