OK, I can not seem to figure out the difference in the data editor between structures that flatten terrain, and structures that don't. I have messed with the tip-ability of the models for my actors, but that hasn't seemed to make a difference. I have a map where you should be able to place buildings on some slanted ground, and I would prefer if the structures when placed did not ruin the terrain :(. Any help would be appreciated.
It's under actor events, but it's weird - terran and zerg buildings use inheritence (they're based on the Terran Building and Zerg Building templates, respectively) while protoss buildings use macros (specifically BuildingFlattenTerrainMacro.)
I can't really explain why they're implemented differently, it probably had to do with the data being created at varying stages of the engine. Maybe macros weren't implemented when the terran and zerg were being created, it would explain why they're way underused in the core data. Well I'm rambling now.
Then go back to detailed view and right-click Event: Remove + and select "Apply value to children." This should make it so all standard terran buildings no longer flatten terrain. (Because of issues of inheritance, it might be helpful to close the map and reopen it to get it to show properly on child actors.) Something similar can be done with Zerg buildings and probably Protoss ones too.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
OK, I can not seem to figure out the difference in the data editor between structures that flatten terrain, and structures that don't. I have messed with the tip-ability of the models for my actors, but that hasn't seemed to make a difference. I have a map where you should be able to place buildings on some slanted ground, and I would prefer if the structures when placed did not ruin the terrain :(. Any help would be appreciated.
It's under actor events, but it's weird - terran and zerg buildings use inheritence (they're based on the Terran Building and Zerg Building templates, respectively) while protoss buildings use macros (specifically BuildingFlattenTerrainMacro.)
I can't really explain why they're implemented differently, it probably had to do with the data being created at varying stages of the engine. Maybe macros weren't implemented when the terran and zerg were being created, it would explain why they're way underused in the core data. Well I'm rambling now.
@RileyStarcraft: Go
Huh, I will have to check that out, I am not familiar with macros but if it is in events I am sure I can find it. Thanks for the quick reply :).
@Honz: Go
Brilliant this worked perfectly, I don't know why I couldn't find this on my own, just search for "flat" in the actor editor...
There I was five minutes ago fiddling with this and came on here and find the answer immediately. Love this site always a great help.
@Laydown112: Go
Still necroing old threads is not advisable. If it answers your issue just read it.
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
@Laydown112:
Here's an extra tip for you. Add the following to the Terran Building actor in the XML view:
<Remove Terms="UnitConstruction.##unitName##.Start" Send="Create BuildingTerrainFlatten"/>
<Remove Terms="UnitConstruction.##unitName##.Cancel" Target="_BuildingTerrainFlatten" Send="Destroy"/>
<Remove Terms="UnitConstruction.##unitName##.Finish" Target="_BuildingTerrainFlatten" Send="Destroy"/>
<Remove Terms="UnitBirth.##unitName##.Normal" Send="Create BuildingTerrainFlatten"/>
<Remove Terms="UnitBirth.##unitName##.Suppressed" Send="Create BuildingTerrainFlattenInstant"/>
<Remove Terms="UnitBirth.##unitName##.EditorPlaced" Send="Create BuildingTerrainFlattenEditor"/>
<Remove Terms="UnitDeath.##unitName##" Target="_BuildingTerrainFlatten" Send="Destroy"/>
Then go back to detailed view and right-click Event: Remove + and select "Apply value to children." This should make it so all standard terran buildings no longer flatten terrain. (Because of issues of inheritance, it might be helpful to close the map and reopen it to get it to show properly on child actors.) Something similar can be done with Zerg buildings and probably Protoss ones too.