setting an entity to not active when just created it

This subforum contains all the issues which we already resolved.
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

setting an entity to not active when just created it

Post by ficolas »

I seem to dont be able to set entities to not active when I just created it:

Code: Select all

local entity=game.createentity{name="bla",position=pos}
entity.setactive(false)
it doesnt return any error, but the entity isnt inactive, it is still active
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: setting an entity to not active when just created it

Post by kovarex »

This was hopefully solved in 0.5.3.
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: setting an entity to not active when just created it

Post by ficolas »

kovarex wrote:This was hopefully solved in 0.5.3.
is not the same bug that I reported in 0.5.2, it is another bug, if you set an entity to not active the same tick you created it, it doesnt work, however if
you set it the next tick, it does work.

Edit: Not sure about the ticks, I was using oninit to create the entity, and I needed to use the next tick to set it to not active.
Post Reply

Return to “Resolved Problems and Bugs”