Page 1 of 1
setting an entity to not active when just created it
Posted: Sat Jul 06, 2013 2:05 pm
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
Re: setting an entity to not active when just created it
Posted: Tue Jul 09, 2013 11:15 am
by kovarex
This was hopefully solved in 0.5.3.
Re: setting an entity to not active when just created it
Posted: Tue Jul 09, 2013 1:06 pm
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.