WithInfantryBody - AttackSequences, how do they work?

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

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: 277
Joined: Fri May 15, 2015 6: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

Who is online

Users browsing this forum: No registered users and 18 guests