What does this do and how is it used. It sounds like for every projectile that is fired this is how much it drains the battery but it doesn't seem to work.
I looked in common projectile scripts and it appears to add a function you need to have the line nearer the top that illustrates ...
pTorp.SetDamage ( GetDamage() )
and then further down ...
def GetDamage ():
return 1000.0
and so on, I tried adding a pTorp.SetPowerCost function but it just crashed. I f anyone can help me understand this it would be much appreciated