Unit Animations: Making a non-worker build an Improvement

scotchandcake

Chieftain
Joined
Jul 12, 2012
Messages
38
Hey folks,

I added a new unit in a mod, which is supposed to be able to build "special" improvements.

It all works fine, the only issue is that the unit has no animation when constructing the improvement. I'm using a military unit model, which obviously doesn't have a "building" animation like the worker does.

I tried to change the "Entity Event" in the "Builds" xml, so the unit would do the fortify animation while constructing (would look better than the unit just standing there doing nothing), but that didn't do anything.

Can anyone point me in the right direction how to fix this?


Here is the xml of the improvement:

Spoiler :
<Improvements>
<Row>
<Type>IMPROVEMENT_GRAVEYARD</Type>
<Description>TXT_KEY_IMPROVEMENT_GRAVEYARD</Description>
<Civilopedia>TXT_KEY_IMPROVEMENT_GRAVEYARD_PEDIA</Civilopedia>
<ArtDefineTag>ART_DEF_IMPROVEMENT_GOODY_HUT</ArtDefineTag>
<RequiresFlatlands>true</RequiresFlatlands>
<PillageGold>20</PillageGold>
<PortraitIndex>34</PortraitIndex>
<IconAtlas>TERRAIN_ATLAS</IconAtlas>
</Row>
</Improvements>
<Improvement_Yields>
<Row>
<ImprovementType>IMPROVEMENT_GRAVEYARD</ImprovementType>
<YieldType>YIELD_CULTURE</YieldType>
<Yield>1</Yield>
</Row>
</Improvement_Yields>
<Improvement_ValidTerrains>
<Row>
<ImprovementType>IMPROVEMENT_GRAVEYARD</ImprovementType>
<TerrainType>TERRAIN_PLAINS</TerrainType>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_GRAVEYARD</ImprovementType>
<TerrainType>TERRAIN_TUNDRA</TerrainType>
</Row>
</Improvement_ValidTerrains>
<Builds>
<Row>
<Type>BUILD_GRAVEYARD</Type>
<Time>800</Time>
<ImprovementType>IMPROVEMENT_GRAVEYARD</ImprovementType>
<Description>TXT_KEY_BUILD_GRAVEYARD</Description>
<Recommendation>TXT_KEY_BUILD_GRAVEYARD_REC</Recommendation>
<EntityEvent>ENTITY_EVENT_BUILD</EntityEvent>
<OrderPriority>98</OrderPriority>
<IconIndex>52</IconIndex>
<IconAtlas>UNIT_ACTION_ATLAS</IconAtlas>
</Row>
</Builds>
<Unit_Builds>
<Row>
<UnitType>UNIT_SHAMAN</UnitType>
<BuildType>BUILD_GRAVEYARD</BuildType>
</Row>
</Unit_Builds>
 
Back
Top Bottom