crafting finished?
crafting finished?
is there a way to tell when an assembling machine has finished crafting? i haven't seen any events regarding it
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn
Re: crafting finished?
why would you need such an event?
Can you give us a scenario?
Can you give us a scenario?
Re: crafting finished?
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
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn
-
- Long Handed Inserter
- Posts: 87
- Joined: Wed Apr 27, 2016 6:30 pm
- Contact:
Re: crafting finished?
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