Page 1 of 1

Allow create_smoke for entities to be disabled

Posted: Sat Sep 06, 2025 7:59 pm
by Wannie
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?

Re: Allow create_smoke for entities to be disabled

Posted: Sat Sep 06, 2025 8:02 pm
by Osmo
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

Posted: Sun Sep 07, 2025 7:41 pm
by Wannie
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

Posted: Mon Sep 08, 2025 8:01 am
by Wannie
Nevermind, I'm stupid. I forgot that spider-vehicle also have legs that create building smoke.