entities as a light source

Posted:
Mon Dec 26, 2011 06:16
by randomproof
I was wondering if anyone knows if there is a way to make entities emit their own light. I'm 99% done with a fire/smoke mod but when I place a fire entity in a node, like a tree trunk, the entity is all black because there is no light shining on it.

Posted:
Mon Dec 26, 2011 08:23
by Hackeridze
Maybe you should try to make node_update_single(pos)?

Posted:
Mon Dec 26, 2011 13:01
by xyz
randomproof wrote:I was wondering if anyone knows if there is a way to make entities emit their own light. I'm 99% done with a fire/smoke mod but when I place a fire entity in a node, like a tree trunk, the entity is all black because there is no light shining on it.
But shouldn't fire be a node?

Posted:
Mon Dec 26, 2011 17:58
by randomproof
xyz wrote:randomproof wrote:I was wondering if anyone knows if there is a way to make entities emit their own light. I'm 99% done with a fire/smoke mod but when I place a fire entity in a node, like a tree trunk, the entity is all black because there is no light shining on it.
But shouldn't fire be a node?
I don't want to remove the existing node, but show that it is on fire. I also need the on_step function to spread the fire and to make smoke.