When entities are placed, the game creates the "trivial-smoke" defined in the "created_smoke" property of the entity. By default, this is the "smoke-building"-smoke. Currently, it is not possible to disable the creation of this smoke.
For my mod, I added a place_result to a capsule to enable players to spawn its entity in remote view. To prevent players from placing entities directly, I use entity.destroy() when they are not of the type ghost_entity. While this works, the building smoke still appears every time I place an entity. I would like to prevent this. Maybe with a flag or by defining an empty table in created_smoke?
Allow create_smoke for entities to be disabled
Re: Allow create_smoke for entities to be disabled
Why would it not be possible already? You can define a CreatedSmokePrototype with an empty animation
Re: Allow create_smoke for entities to be disabled
I thought that would work too. Unfortunately, even when I create an empty smoke and define it in the entity's created_smoke property, the building smoke still shows up.
Re: Allow create_smoke for entities to be disabled
Nevermind, I'm stupid. I forgot that spider-vehicle also have legs that create building smoke.