Star Trek: Bridge Commander aka BCFiles is back! Now on Gamefront!https://www.gamefront.com/games/bridge-commander
Code: [Select]import Apptry: import Foundation import FoundationTechexcept: print "FTech not found" class ShieldflareTorpedo(FoundationTech.TechDef): def __init__(self, name, dict = {}): FoundationTech.TechDef.__init__(self, name, FoundationTech.dMode) self.lYields = [] self.__dict__.update(dict) self.lFired = [] def OnYield(self, pShip, pInstance, pEvent, pTorp): pTorp.SetLifetime(0)
import Apptry: import Foundation import FoundationTechexcept: print "FTech not found" class ShieldflareTorpedo(FoundationTech.TechDef): def __init__(self, name, dict = {}): FoundationTech.TechDef.__init__(self, name, FoundationTech.dMode) self.lYields = [] self.__dict__.update(dict) self.lFired = [] def OnYield(self, pShip, pInstance, pEvent, pTorp): pTorp.SetLifetime(0)
print App.Torpedo.SetLifetime