I'm not sure, but there is something in the actor for buildings that edits the terrain. Maybe if you delete that field it will stop the doodad carnage.
have your terrain be all bumpy, place a doodad, and then change the height of your terrain right near the doodad and see what happens in the editor... your doodad either moves up or down, and gets displaced.
All buildings flatten the terrain under and slightly around themselves. Have you ever seen a lopsided Barracks? Didn't think so :P
It's flat already... PERFECTLY flat. The doodad is either shifting down through the terrain, or it's getting deleted. Either way, it's disappearing, and I can't have that... the doodads are kind of important.
Hmm, well, structures use the 'Building Terrain Flatten Instant' and/or 'Building Terrain Flatten' actor(s), and it has a field -> Actor - Influence Range. Change that value from 2 to 0 and give that a try??
Eitherway, wether your terrain is flat or not, it will run this 'flatten' actor. To me it seems like this only should affect foliage, but perhaps the doodads are automatically included in 'foliage' for this kind of actor.
Hmm, before posting this I decided to take another look at the Barracks and noticed a 'BuildingCrushQueryResponse' in one of it's events.
Looking into that actor, it MIGHT remove certain doodads? I would think not, because this only seems to be used when landing a lifted structure, most likely preventing it from landing on trees.. But if you look into it and play around with some settings or something, perhaps you will find a solution.
I would suggest playing around with the Flatten actors first.
Oh and... it seems Terran and Zerg structures use the Flatten actors, but not Protoss structures. Only Terran lifted buildings seem to use CrushQuery actor.
How do I make it so a building doesn't delete the doodads around it when construction starts?
I'm not sure, but there is something in the actor for buildings that edits the terrain. Maybe if you delete that field it will stop the doodad carnage.
Do you know what it's called?
Its a Terrain Deformer actor that most buildings create.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
ya it's definitely the terrain deformer.
have your terrain be all bumpy, place a doodad, and then change the height of your terrain right near the doodad and see what happens in the editor... your doodad either moves up or down, and gets displaced.
All buildings flatten the terrain under and slightly around themselves. Have you ever seen a lopsided Barracks? Didn't think so :P
It's flat already... PERFECTLY flat. The doodad is either shifting down through the terrain, or it's getting deleted. Either way, it's disappearing, and I can't have that... the doodads are kind of important.
@LazyCoder: Go
Hmm, well, structures use the 'Building Terrain Flatten Instant' and/or 'Building Terrain Flatten' actor(s), and it has a field -> Actor - Influence Range. Change that value from 2 to 0 and give that a try??
Eitherway, wether your terrain is flat or not, it will run this 'flatten' actor. To me it seems like this only should affect foliage, but perhaps the doodads are automatically included in 'foliage' for this kind of actor.
Hmm, before posting this I decided to take another look at the Barracks and noticed a 'BuildingCrushQueryResponse' in one of it's events.
Looking into that actor, it MIGHT remove certain doodads? I would think not, because this only seems to be used when landing a lifted structure, most likely preventing it from landing on trees.. But if you look into it and play around with some settings or something, perhaps you will find a solution.
I would suggest playing around with the Flatten actors first.
Oh and... it seems Terran and Zerg structures use the Flatten actors, but not Protoss structures. Only Terran lifted buildings seem to use CrushQuery actor.
Huh... I thought I had removed all of those flatten events, but I'll take another look.