def announceGenerate(self): DistributedEntityAI.announceGenerate(self) DistributedNodeAI.announceGenerate(self) assert self.cEntity self.setPos(self.cEntity.getOrigin()) self.setHpr(self.cEntity.getAngles()) pos = self.getPos() hpr = self.getHpr() self.d_setPosHpr(pos[0], pos[1], pos[2], hpr[0], hpr[1], hpr[2])
def announceGenerate(self): DistributedNodeAI.announceGenerate(self) loc = ButterflyGlobals.Spots[self.hood].index(random.choice(ButterflyGlobals.Spots[self.hood])) self.b_setState(1, loc, loc)
def announceGenerate(self): DistributedNodeAI.announceGenerate(self) pos, hpr = self.truckTransByIndex[self.index] self.d_setPos(*pos) self.d_setHpr(*hpr) self.b_setParent(CIGlobals.SPRender)
def announceGenerate(self): DistributedNodeAI.announceGenerate(self) self.resetTaskName = self.uniqueName('ResetPoint') self.captureAttemptTaskName = self.uniqueName('CaptureAttempt') self.awardKingTaskName = self.uniqueName('AwardKing')
def announceGenerate(self): DistributedNodeAI.announceGenerate(self)
def announceGenerate(self): DistributedNodeAI.announceGenerate(self) self.b_setState('pathFollow')