clearing rocket_silo "rocket result inventory"

Place to get help with not working mods / modding interface.
Post Reply
robertpaulson
Long Handed Inserter
Long Handed Inserter
Posts: 92
Joined: Sun Jun 18, 2017 2:21 pm
Contact:

clearing rocket_silo "rocket result inventory"

Post by robertpaulson »

Hi.

was rocket_silo.inventory key changed?
I'm not completely sure if it was there to begin with, and I can't find anything in update history.

Anyone know how do I access event.rocket_silo "rocket result inventory" from on_rocket_launched?

I'm trying to conditionally clear it.

I've tried the following:

event.rocket_silo.inventory.clear()
event.rocket_silo.result_inventory.clear()
event.rocket_silo.rocket_result_inventory.clear()

none of which exist...

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: clearing rocket_silo "rocket result inventory"

Post by DaveMcW »

event.rocket_silo.get_inventory(defines.inventory.rocket_silo_result).clear()

robertpaulson
Long Handed Inserter
Long Handed Inserter
Posts: 92
Joined: Sun Jun 18, 2017 2:21 pm
Contact:

Re: clearing rocket_silo "rocket result inventory"

Post by robertpaulson »

DaveMcW wrote:
Thu Oct 25, 2018 4:21 am
event.rocket_silo.get_inventory(defines.inventory.rocket_silo_result).clear()
thanks for quick response!

Post Reply

Return to “Modding help”