Allow create_smoke for entities to be disabled

Place to get help with not working mods / modding interface.
Wannie
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sun Apr 14, 2019 9:01 pm
Contact:

Allow create_smoke for entities to be disabled

Post 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?
User avatar
Osmo
Fast Inserter
Fast Inserter
Posts: 140
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: Allow create_smoke for entities to be disabled

Post by Osmo »

Why would it not be possible already? You can define a CreatedSmokePrototype with an empty animation
Wannie
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sun Apr 14, 2019 9:01 pm
Contact:

Re: Allow create_smoke for entities to be disabled

Post 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.
Wannie
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sun Apr 14, 2019 9:01 pm
Contact:

Re: Allow create_smoke for entities to be disabled

Post by Wannie »

Nevermind, I'm stupid. I forgot that spider-vehicle also have legs that create building smoke.
Post Reply

Return to “Modding help”