Quote:
|
Originally Posted by MetallicSomber
There a way to Make one ammo type not fireable by Catapults or Cannons? like the plague cows for catapults, and grapeshot for cannons?
|
Each weapon has a list of allowed ammo, like this one in SiegeCannon.cs
Code:
private Type[] m_allowedprojectiles = new Type[] { typeof(SiegeCannonball) };
but I dont have an excluded projectiles list yet. I'll add that in.
You can always just explicitly list the cannonballs that you want to be able to use in the cannon and catapult scripts, like
Code:
private Type[] m_allowedprojectiles = new Type[] {
typeof(GrapeShot),
typeof(FieryCannonball),
typeof(IronCannonball),
typeof(ExplodingCannonball),
typeof(LightCannonball),
};
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "
For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum