mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-27 13:42:28 -06:00
29 lines
1.1 KiB
Python
29 lines
1.1 KiB
Python
|
from otp.ai.AIBase import *
|
||
|
from direct.interval.IntervalGlobal import *
|
||
|
from direct.directnotify import DirectNotifyGlobal
|
||
|
from direct.distributed import ClockDelta
|
||
|
from direct.task import Task
|
||
|
from otp.level import DistributedEntityAI
|
||
|
from otp.level import BasicEntities
|
||
|
from direct.directnotify import DirectNotifyGlobal
|
||
|
|
||
|
class DistributedElevatorMarkerAI(DistributedEntityAI.DistributedEntityAI, NodePath, BasicEntities.NodePathAttribs):
|
||
|
|
||
|
def __init__(self, level, entId):
|
||
|
DistributedEntityAI.DistributedEntityAI.__init__(self, level, entId)
|
||
|
node = hidden.attachNewNode('DistributedElevatorMarkerAI')
|
||
|
NodePath.__init__(self, node)
|
||
|
|
||
|
def generate(self):
|
||
|
DistributedEntityAI.DistributedEntityAI.generate(self)
|
||
|
self.setPos(self.pos)
|
||
|
self.setHpr(self.hpr)
|
||
|
|
||
|
def delete(self):
|
||
|
self.ignoreAll()
|
||
|
DistributedEntityAI.DistributedEntityAI.delete(self)
|
||
|
|
||
|
def destroy(self):
|
||
|
self.notify.info('destroy entity(elevatorMaker) %s' % self.entId)
|
||
|
DistributedEntityAI.DistributedEntityAI.destroy(self)
|