WithInfantryBody - AttackSequences, how do they work?

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

WithInfantryBody - AttackSequences, how do they work?

Post by Zeruel87 »

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: 275
Joined: Fri May 15, 2015 5:57 pm

Re: WithInfantryBody - AttackSequences, how do they work?

Post by Graion Dilach »

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