WithInfantryBody - AttackSequences, how do they work?

Information and discussion for custom maps and mods.
Post Reply
User avatar
Zeruel87
Posts: 33
Joined: Mon Oct 15, 2018 8:18 pm

WithInfantryBody - AttackSequences, how do they work?

Post by Zeruel87 » Sat Dec 29, 2018 4:41 pm

i see there is a Trait so you can tell an infantry unit to use different attack animations for different Armaments (attacks), but i dont get it how to correctly put it in the .yaml files and i cant find an example. :?
Check out my CnC mod at:
https://www.moddb.com/mods/cameo

User avatar
Graion Dilach
Posts: 249
Joined: Fri May 15, 2015 5:57 pm

Re: WithInfantryBody - AttackSequences, how do they work?

Post by Graion Dilach » Sun Dec 30, 2018 10:23 pm

Code: Select all

mingxia:
	[...]
	Armament@primary2:
		Name: secondary
		Weapon: MingxiaGun
		RequiresCondition: !rank-heroic && !weapondisable
	Armament@elite2:
		Name: secondary
		Weapon: MingxiaGunE
		RequiresCondition: rank-heroic && !weapondisable
	WithInfantryBody:
		AttackSequences:
			secondary: shoot-gun

Post Reply