create_entity parameter for "built by bots"

Things that already exist in the current mod API
Post Reply
sparr
Smart Inserter
Smart Inserter
Posts: 1327
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

create_entity parameter for "built by bots"

Post by sparr »

I want to be able to create_entity and trigger other mods' on_robot_built_entity instead of on_built_entity.

betrok
Fast Inserter
Fast Inserter
Posts: 101
Joined: Wed Feb 28, 2018 12:08 pm
Contact:

Re: create_entity parameter for "built by bots"

Post by betrok »

Can not you just raise event on your own?

sparr
Smart Inserter
Smart Inserter
Posts: 1327
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: create_entity parameter for "built by bots"

Post by sparr »

I could do my own raise_event for on_robot_built_entity, but I don't think I can prevent the on_built_entity from firing, and I definitely don't want other mods that watch both of those to think two entities were built.

betrok
Fast Inserter
Fast Inserter
Posts: 101
Joined: Wed Feb 28, 2018 12:08 pm
Contact:

Re: create_entity parameter for "built by bots"

Post by betrok »

sparr wrote:I don't think I can prevent the on_built_entity from firing
There will be no events unless you will raise them.

sparr
Smart Inserter
Smart Inserter
Posts: 1327
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: create_entity parameter for "built by bots"

Post by sparr »

Oh, well, I feel dumb now.

Post Reply

Return to “Already exists”