Access to if a rocket silo has a completed rocket
- Cooldude2606
- Fast Inserter
- Posts: 108
- Joined: Sat Sep 16, 2017 9:04 pm
- Contact:
Access to if a rocket silo has a completed rocket
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?
Re: Access to if a rocket silo has a completed rocket
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.