Hello, everyone!
I have some trouble in making a mod unit to fire as following and I need support to solve this matter:
- i try to make a new Seraphim experimental building, able to fire 4 nukes simultaneously (each nuke via its own rack, all four racks fire together);
- the PROBLEM is that I make it to fire, but the silo nuke projectile counter is going on MINUS at value!!! The nukes should be fired when there are min 4 in silo, but actually four nukes are released when ony one is build!!!
- first see below the script part:
InainoMissiles = Class(SIFInainoWeapon) {
RackSalvoFireReadyState = State(SIFInainoWeapon.RackSalvoFireReadyState) {
Main = function(self)
if self.unit:GetTacticalSiloAmmoCount() < 4 then
self:ForkThread(
function(self)
WaitTicks(1)
if self.unit:GetTacticalSiloAmmoCount() > 3 then
SIFInainoWeapon.RackSalvoFireReadyState.Main(self)
end
end
)
return
else
SIFInainoWeapon.RackSalvoFireReadyState.Main(self)
end
end,
},
- and now the unit.bp part:
MuzzleSalvoDelay = 0,
MuzzleSalvoSize = 1,
MuzzleVelocity = 10,
NukeInnerRingDamage = 70000,
NukeInnerRingRadius = 30,
NukeInnerRingTicks = 24,
NukeInnerRingTotalTime = 0,
NukeOuterRingDamage = 500,
NukeOuterRingRadius = 40,
NukeOuterRingTicks = 20,
NukeOuterRingTotalTime = 0,
NukeWeapon = true,
ProjectileId = '/projectiles/SIFInainoStrategicMissile01/SIFInainoStrategicMissile01_proj.bp',
ProjectilesPerOnFire = 1,
RackBones = {
{
MuzzleBones = {
'Nuke01',
'Nuke02',
'Nuke03',
'Nuke04',
},
RackBone = 'Nuke01',
},
},
RackFireTogether = true,
RackRecoilDistance = 0,
RackReloadTimeout = 10,
RackSalvoChargeTime = 0,
RackSalvoReloadTime = 0,
RackSalvoSize = 1,
Many thanks for your help or relevant info!