crafting finished?
Posted: Fri May 06, 2016 2:16 pm
is there a way to tell when an assembling machine has finished crafting? i haven't seen any events regarding it
There's no event to do it, but you can set up a watching script using the on_tick event that will check assemblers of your specified type for whether they have completed a project. If the finished rocket acts like an item in the inventory, you can just watch for it via get_output_inventory in that script, and do anything you need if it's there.Lutra wrote:when you craft a rocket(not vanilla, my modded one) it launches automatically. i.e. there is an assembler for item small-rocket. when it finishes i want it to launch the rocket. i have all the other code sorted, but not the transition from when the assembler finishes crafting