mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-21 06:13:13 -04:00
Waypoints can now be destroyed
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user