Waypoints can now be destroyed

This commit is contained in:
Light2
2013-08-04 21:35:26 +02:00
parent 30450d1f9f
commit 7ed18ce86c
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -7,8 +7,11 @@ def run(core, actor, target, commandString):
if not target:
return
print 'Destroy Test'
if target.getTemplate() == 'object/waypoint/shared_waypoint.iff':
actor.getSlottedObject('ghost').waypointRemove(target)
core.objectService.destroyObject(target)
return
parent = target.getContainer()
+1 -1
View File
@@ -10,7 +10,7 @@ def run(core, actor, target, commandString):
crc = CRC
commandArgs = commandString.split(" ")
actorPlayer = actor.getSlottedObject("ghost")
#/wp PLANET X Z Y COLOR NAME
if commandArgs[0] in validPlanets and commandArgs[4] in validColors:
try: