snafusmith
Unit Maker
No XML files are included here. Just use the destroyer code as an example, and point to the AEGIS.nif and AEGIS.kfm files.
blshear1 said:It's my first time adding in a unit and i'm having trouble. What exactly do u do to add in a unit? any help would be great!!!!!
blshear1 said:Thank U So Much!!!!!!!!!![]()
Armandeus said:I tried following these instructions, but I get a pink ship floating above the water.
Here's what my CIV4ArtDefines_Unit entry looks like
<UnitArtInfo>
<Type>ART_DEF_UNIT_AEGIS</Type>
<fScale>1.2</fScale>
<fInterfaceScale>1.0</fInterfaceScale>
<NIF>Art/Units/AEGIS/AEGIS.nif</NIF>
<KFM>Art/Units/AEGIS/AEGIS.kfm</KFM>
<SHADERNIF>Art/Units/AEGIS/Destroyer_FX.nif</SHADERNIF>
<ShadowDef>
<ShadowNIF>Art/Units/01_UnitShadows/DestroyerShadow.nif</ShadowNIF>
<ShadowAttachNode>BIP Pelvis</ShadowAttachNode>
<fShadowScale>1.0</fShadowScale>
</ShadowDef>
<iDamageStates>4</iDamageStates>
<TrailDefinition>
<Texture>Art/Shared/water_ship_wake.dds</Texture>
<fWidth>1</fWidth>
<fLength>180.0</fLength>
<fTaper>1</fTaper>
<fFadeStartTime>.2</fFadeStartTime>
<fFadeFalloff>0.35</fFadeFalloff>
</TrailDefinition>
<fBattleDistance>0.35</fBattleDistance>
<fRangedDeathTime>0.31</fRangedDeathTime>
<bSmoothMove>1</bSmoothMove>
<fAngleInterpRate>720.0</fAngleInterpRate>
<fExchangeAngle>25.0</fExchangeAngle>
<bActAsRanged>0</bActAsRanged>
<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
<AudioRunSounds>
<AudioRunTypeLoop>LOOPSTEP_DESTOYER</AudioRunTypeLoop>
<AudioRunTypeEnd>ENDSTEP_DESTROYER</AudioRunTypeEnd>
</AudioRunSounds>
<SelectionSound>AS3D_UN_DESTROYER_FORT</SelectionSound>
<ActionSound>AS3D_UN_DESTROYER_FORT</ActionSound>
</UnitArtInfo>
What am I doing wrong?
big_feef said:Change the line <SHADERNIF>Art/Units/AEGIS/Destroyer_FX.nif</SHADERNIF> to <SHADERNIF>Art/Units/AEGIS/AEGIS.nif</SHADERNIF>. I think that's the cause of your problem... unless you had copied the Destroyer_FX.nif file over to your AEGIS folder.
snafusmith said:Also, this unit does NOT support team colors (none of my units do).
-Smitty