Posted by: designmission - Tuesday, April 24, 2018 1:22:54 PM
Okay, so this may be kind of dumb. But I wanted to ask because when I go to weapons it says: Primary and/or Secondary (sometimes none.)
But the question is here...
[b]Can I add an third weapon for a tank? Possible? Need Coding? Not possible?[/b]
[color=green]
I am on anything if it is possible to do it. Thanks if any one can help[/color]. [+1] [+1]
Posted by: Ace40k - Tuesday, April 24, 2018 3:57:41 PM
yes, it is possible. see my Hind unit code below as an example
[quote]
WeaponSet
Conditions = NONE
Weapon = PRIMARY HindRocketPodWeapon
PreferredAgainst = PRIMARY VEHICLE STRUCTURE
AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
Weapon = SECONDARY HindCannonWeapon
PreferredAgainst = SECONDARY INFANTRY VEHICLE
AutoChooseSources = SECONDARY FROM_PLAYER FROM_SCRIPT FROM_AI
Weapon = TERTIARY HindAAMissileWeapon
PreferredAgainst = TERTIARY AIRCRAFT
AutoChooseSources = TERTIARY FROM_PLAYER FROM_SCRIPT FROM_AI
End[/quote]
and all three are working just fine. the unit can even fire all three weapons at the same time
Posted by: designmission - Wednesday, April 25, 2018 3:14:55 AM
Thanks for the help Ace40k! Now I can continue my modding.