self._tntWind = bs.Timer(75,bs.WeakCall(self.tntWind),repeat = True) def tntWind(self): bs.Bomb(bombType = 'tnt',position = (-30,-8+(random.random()*0.2),random.uniform(10,-45)),velocity = (random.random(),random.random()*0.1,random.random())).autoRetain().node.extraAcceleration = (3,20,0) g = bs.getSharedObject('globals') self._tntWind = bs.Timer(75,bs.WeakCall(self.tntWind),repeat = True)
def tntWind(self):
bs.Bomb(bombType = 'tnt',position = (-30,-8+(random.random()*0.2),random.uniform(10,-45)),velocity = (random.random(),random.random()*0.1,random.random())).autoRetain().node.extraAcceleration = (3,20,0)
g = bs.getSharedObject('globals')
|