Bridge Commander Central
BC Forums => BC Technical Support => Topic started by: AdmiralWhite on August 23, 2018, 11:20:52 AM
-
I'm currently using the C2 Lakota and Ive added NemPhoton, NemQuantum and Tranphasic torpedoes to the ship however the torpedoes don't show in the tactical display in game. below is the PY section of the torpedoes. did I do something wrong?
Torpedoes = App.TorpedoSystemProperty_Create("Torpedoes")
Torpedoes.SetMaxCondition(9000.000000)
Torpedoes.SetCritical(0)
Torpedoes.SetTargetable(0)
Torpedoes.SetPrimary(1)
Torpedoes.SetPosition(-0.013416, 1.023430, -0.011148)
Torpedoes.SetPosition2D(82.000000, 64.000000)
Torpedoes.SetRepairComplexity(2.000000)
Torpedoes.SetDisabledPercentage(0.850000)
Torpedoes.SetRadius(0.120000)
Torpedoes.SetNormalPowerPerSecond(130.000000)
Torpedoes.SetWeaponSystemType(Torpedoes.WST_TORPEDO)
Torpedoes.SetSingleFire(0)
Torpedoes.SetAimedWeapon(8)
kFiringChainString = App.TGString()
kFiringChainString.SetString("0;Single;75;Dual;")
Torpedoes.SetFiringChainString(kFiringChainString)
Torpedoes.SetMaxTorpedoes(0, 150)
Torpedoes.SetTorpedoScript(0, "Tactical.Projectiles.NemPhoton")
Torpedoes.SetMaxTorpedoes(1, 70)
Torpedoes.SetTorpedoScript(1, "Tactical.Projectiles.NemQuantum")
Topedo.SetMaxTorpedoes(2, 130)
Topedo.SetTorpedoScript(2, "Tactical.Projectiles.Transphasic")
Topedo.SetNumAmmoTypes(3)
App.g_kModelPropertyManager.RegisterLocalTemplate(Torpedoes)
#################################################
-
Take a look at these lines:
Topedo.SetMaxTorpedoes(2, 130)
Topedo.SetTorpedoScript(2, "Tactical.Projectiles.Transphasic")
Topedo.SetNumAmmoTypes(3)
You have it listed as Topedo.SetMax…(etc). It needs to be Torpedoes.SetMax…(etc) like the rest of the script. That should fix the problem.
:)