Posted by: AdrianeMapMaker - Sunday, October 15, 2017 4:16:32 AM
How to add a unit with a 2d texture underneath of him? Like In the china's infantry - triggered by nationalism?

Posted by: acidbrain - Sunday, October 15, 2017 6:10:59 AM
[code=plain] ; --- Object code --- HordeUpdate ;module is hardcoded to apply the following textures to objects that are affected by this module: EXHorde, EXHorde_UP, EXHordeB, EXHordeB_UP UpdateRate = integer, milliseconds RubOffRadius = integer AlliesOnly = Yes/No ExactMatch = Yes/No Action = WeaponBonus name FlagSubObjectNames = sub object name Radius = integer KindOf = KindOfs Count = integer AllowedNationalism = Yes/No End ; ---------------------------- ; --- GameData.ini --- ;HORDE and NATIONALISM are cumulative bonuses for the China Redguard, ;and only apply when they are in a horde. NATIONALISM does not replace HORDE! ;ENTHUSIASTIC and SUBLIMINAL are cumulative bonuses for the China Redguard, ;and only apply when they are in a horde. SUBLIMINAL does not replace ENTHUSIASTIC! WeaponBonus = HORDE RATE_OF_FIRE 150% ;Horded troops fire their weapons 25% faster WeaponBonus = NATIONALISM RATE_OF_FIRE 125% ;Horded troops with nationalism fire their weapon an additional 25% faster WeaponBonus = ENTHUSIASTIC RATE_OF_FIRE 125% ;In range of a speaker tower, gaining enthusiasm WeaponBonus = SUBLIMINAL RATE_OF_FIRE 125% ;In range of an upgraded speaker tower, gaining even more enthusiasm [/code] Take a close look at this line: [code] module is hardcoded to apply the following textures to objects that are affected by this module: EXHorde, EXHorde_UP, EXHordeB, EXHordeB_UP [/code] So if you want a texture underneath an infantry model use the HordeUpdate module... Upgrade Nationalism: +25% to Horde bonus for Red Guard, Tank Hunter and Battlemaster Cheers