• 📚 A new project from the admin: Check out PictureBooks.io, an AI storyteller that lets you build custom picture books for kids in seconds. Let me know what you think here!

<UnitCombatMods/> what does it do?

Lib.Spi't

Overlord of the Wasteland
Joined
Feb 12, 2009
Messages
3,708
Location
UK
Hi all I'm trying to figure out what:

<UnitCombatMods/>

does in the unitinfo.xml, I can't find any examples of it use in the standard game(BtS)?

also I would like to make a unit that always gets a defensive bonus or always gets an attack bonus, but I cannot find an entry in the unitinfo.xml that can do it? Is it possible?
 
<UnitCombatMods> give the unit, combat modifiers against the UnitCombat listed under <UnitCombatMods>


it'll look like this:

Code:
       <UnitCombatMods>
	<UnitCombatMod>
	     <UnitCombatType>UNITCOMBAT_HELICOPTER</UnitCombatType>
             <iUnitCombatMod>75</iUnitCombatMod>
	</UnitCombatMod>
       </UnitCombatMods>

the above example is from the Sam Infantry entry
 
Back
Top Bottom