Units firing multiple weapons
Posted: 25 Jul 2013, 06:18
How do I get a unit to be able to fire more than one weapon such as a ship being able to fire both missiles and a railgun?
When I use: weapons = {
[1]={name = "coaxialrailgun1" and "cmissile",
},
},
} It causes a randomly causes either the railgun or the missile to be the only one that fires.
When I use: weapons = {
[1]={name = "coaxialrailgun1", "cmissile",
},
},
} The one listed first is the only one that fires.
When I use: weapons = {
[1]={name = "coaxialrailgun1",
[2]={name = "cmissile",
},
},
}
It becomes a invalid unit def.
When I use: weapons = {
[1]={name = "coaxialrailgun1" and "cmissile",
},
},
} It causes a randomly causes either the railgun or the missile to be the only one that fires.
When I use: weapons = {
[1]={name = "coaxialrailgun1", "cmissile",
},
},
} The one listed first is the only one that fires.
When I use: weapons = {
[1]={name = "coaxialrailgun1",
[2]={name = "cmissile",
},
},
}
It becomes a invalid unit def.