mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
go to new zone if moved
This commit is contained in:
parent
5ef47ae9f6
commit
03795f447a
@ -30,3 +30,10 @@ class DistributedEntityAI(DistributedObjectAI.DistributedObjectAI,
|
|||||||
|
|
||||||
def getEntId(self):
|
def getEntId(self):
|
||||||
return self.entId
|
return self.entId
|
||||||
|
|
||||||
|
if __debug__:
|
||||||
|
def setParentEntId(self, parentEntId):
|
||||||
|
self.parentEntId = parentEntId
|
||||||
|
# switch to new zone
|
||||||
|
newZoneId = self.getZoneEntity().getZoneId()
|
||||||
|
self.sendSetZone(newZoneId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user