Page 1 of 1

Smoke and Particles for machines

Posted: Thu May 30, 2024 5:59 pm
by DannyDavidDJ
Hii
I need help adding Smoke when machine is working and mining particles also when machine is working.

I tried to copy code from base game but that dosen't seem to work.

Any idea how to make it?

Thanks is advance :)

Re: Smoke and Particles for machines

Posted: Sun Jun 02, 2024 3:16 pm
by DannyDavidDJ
Well, After some tinkering, i found how to add smoke that actually works...

...but for furnaces (and probably any "burner" machines)
Here's the code :
smoke =
{
{
name = "smoke",
frequency = 6,
position = {3.0, -1.7},
starting_vertical_speed = 0.12,
starting_frame_deviation = 60
}
}
Any idea how to make it work on electrical machines?

Thanks in advance :>

Re: Smoke and Particles for machines

Posted: Sun Jun 02, 2024 4:02 pm
by Silari
The only things listed as using the smoke prototype by the docs are

BurnerEnergySource::smoke
FireFlamePrototype::smoke
FluidEnergySource::smoke
FluidStreamPrototype::smoke_sources
GeneratorPrototype::smoke
ParticleSourcePrototype::smoke
ProjectilePrototype::smoke


So unless you have one of those you can't attach a smoke effect.

Re: Smoke and Particles for machines

Posted: Tue Jun 04, 2024 7:29 pm
by DannyDavidDJ
Oh
Alright, I'll try it whenever i get some free time, Thanks!