I want to make the stealth bomber have 3 or 4 unitmembers and give it fighter like animations. Having trouble updating the code via xml however.
I also wanted to make the unit smaller the same size as a fighter. The stealth bomber is being changed into a dive bomber.
I found this code from an earlier thread. Would I have to add this to its own xml file within my mod and set VFS to true? It still gives me just one unit member.
Spoiler :
Code:
<UnitArtInfo>
<Type>ART_DEF_UNIT_STEALTH_BOMBER</Type>
<Formation>BomberWing</Formation>
<DamageStates>1</DamageStates>
<UnitMemberArt>
<MemberType>ART_DEF_UNIT_MEMBER_STEALTHBOMBER</MemberType>
<MemberCount>3</MemberCount>
</UnitMemberArt>
</UnitArtInfo>
<UnitMemberArtInfo>
<Type>ART_DEF_UNIT_MEMBER_STEALTHBOMBER</Type>
<fScale>0.08</fScale>
<Granny>Assets/Units/StealthBomber/StealthBomber.fxsxml</Granny>
<Domain>Air</Domain>
<Combat>
<Defaults>ART_DEF_TEMPLATE_AIR</Defaults>
<fTurnRateMin>0.25</fTurnRateMin>
<fTurnRateMax>0.5</fTurnRateMax>
<fAttackRadius>45.0</fAttackRadius>
<fMoveRate>1.6</fMoveRate>
<Weapon>
<Weapon>
<fHitRadius>15.0</fHitRadius>
<fVisKillStrengthMin>1.0</fVisKillStrengthMin>
<fVisKillStrengthMax>1.0</fVisKillStrengthMax>
<WeaponTypeTag>BULLETHC</WeaponTypeTag>
<WeaponTypeSoundOverrideTag>BULLETHC</WeaponTypeSoundOverrideTag>
<HitEffect>ART_DEF_VEFFECT_FIGHTER_MACHINE_GUN_HIT_$(TERRAIN)</HitEffect>
</Weapon>
<Weapon>
<ID>PROJECTILE</ID>
<fProjectileSpeed>3</fProjectileSpeed>
<fVisKillStrengthMin>25.0</fVisKillStrengthMin>
<fVisKillStrengthMax>50.0</fVisKillStrengthMax>
<bIsDropped>1</bIsDropped>
<bTargetGround>1</bTargetGround>
<WeaponTypeTag>EXPLOSIVE</WeaponTypeTag>
<WeaponTypeSoundOverrideTag>EXPLOSION200POUND</WeaponTypeSoundOverrideTag>
</Weapon>
</Weapon>
</Combat>
<MaterialTypeTag>METAL</MaterialTypeTag>
<MaterialTypeSoundOverrideTag>METALLRG</MaterialTypeSoundOverrideTag>
</UnitMemberArtInfo>
I also wanted to make the unit smaller the same size as a fighter. The stealth bomber is being changed into a dive bomber.
I found this code from an earlier thread. Would I have to add this to its own xml file within my mod and set VFS to true? It still gives me just one unit member.
Code:
<GameData>
<ArtDefine_UnitInfoMemberInfos>
<Update>
<Where UnitMemberInfoType="ART_DEF_UNIT_MEMBER_STEALTHBOMBER"/>
<Set NumMembers="3"/>
</Update>
</ArtDefine_UnitInfoMemberInfos>
</GameData>