Page 1 of 1

crafting finished?

Posted: Fri May 06, 2016 2:16 pm
by Lutra
is there a way to tell when an assembling machine has finished crafting? i haven't seen any events regarding it

Re: crafting finished?

Posted: Fri May 06, 2016 3:07 pm
by ClayC
why would you need such an event?

Can you give us a scenario?

Re: crafting finished?

Posted: Fri May 06, 2016 3:43 pm
by Lutra
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

Re: crafting finished?

Posted: Sat May 07, 2016 4:34 pm
by Sean Mirrsen
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
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.