Well, I'm trying to make it so the Rifleman Elite model uses his bayonette (or however you spell it) on ground units, and his rifle on air units. So far I have:
Attack
Events
Unit - A unit Is attacked
Conditions
((Triggering unit) is A ground unit) Equal to True
(Unit-type of (Attacking unit)) Equal to Dwarf Hunter
(Custom value of (Attacking unit)) Equal to 0
Actions
Unit - Set the custom value of (Attacking unit) to 1
Animation - Remove the one animation tag to (Attacking unit)
Animation - Add the two animation tag to (Attacking unit)
But I can't figure out how to turn off his Attack Two animation (the bayonette one) when he is attacking an air unit.
Just change the first condition so that you can check if the unit is flying. I don't think you need any custom values. Depending on the target it has, you can just change the tag. Is it simple enough?