def hitSomebody(self, avId, timeStamp): if localAvatar.doId != avId: kart = DistributedVehicle.getKartFromAvId(avId) if kart: self.nodePath.hide() if hasattr(self, 'bnp'): self.bnp.removeNode() kart.playSpin(timeStamp)
def hitSomebody(self, avId, timeStamp): if localAvatar.doId != avId: kart = DistributedVehicle.getKartFromAvId(avId) if kart: self.nodePath.hide() if hasattr(self, 'bnp'): self.bnp.remove() kart.playSpin(timeStamp)