Allow create_smoke for entities to be disabled
Posted: Sat Sep 06, 2025 7:59 pm
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?
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?