I’d like to know if anyone knows how to simulate fire behavior? I’ve tried using regions to detect whether or not a part is in a region. Basically I want it where you break a window and the fire expands by a little bit. I tried this by using regions but it didn’t seem to work as it didn’t want to get the part since it was inside a model and it was just unreliable. Does anyone know how to make a simple way to implement breaking a window and expanding the fire? This would simulate the fire tetrahedron adding oxygen to the fire and expanding it when the window is broken. But I need a pointer in the right direction on what to do to achieve my result.
It might be a little intensive, but you should be able to have the breaking of the window part (presumably it won’t be destroyed), fire some sort of event that lets your fire script know that, “hey, this window is gone, let’s add some fire to this area of the house”. I am curious though, are you going to have some of the smoke from that room clear out as they ventilate?
Yes, that’s my idea when the fire has been put out. I actually made fans that do this to. You put the fan down when there is no fire near and it’ll remove a little smoke each second. But I want it to when I break the window that it will fire that event and expand the fire or when the fire is out and smoke is in there you’ll need to break windows to remove smoke or use vent fans. The first time I tried it I used events and then I used an IntValue the second time which seemed to work better because when the axe breaks the window it adds 5 to the OxygenLevel IntValue but the issue is the function like expanding the fire type thing.
I know what your saying by expand the fire when the window is broken and I tried to do that with regions that exact way you told me to but it didn’t seem to work properly. Maybe because the fire particle was in a part inside the model. I used “GetChildren” instead of “GetDescendants” which I might try later.
But I was trying to find an additional method I could do that would be better than having regions only because so many regions could lag the game.
I’m still looking for others way to do this if anyone else has any ideas for me.