From 47a2706432b73e9d6325ddc4d0f1208a5d0455eb Mon Sep 17 00:00:00 2001 From: Ziggeh Date: Sun, 8 Dec 2013 15:12:43 +0100 Subject: [PATCH] Cleaned up waypoint scripts --- scripts/commands/requestwaypointatposition.py | 6 ++---- scripts/commands/waypoint.py | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/commands/requestwaypointatposition.py b/scripts/commands/requestwaypointatposition.py index 60b932ce..2acdedc3 100644 --- a/scripts/commands/requestwaypointatposition.py +++ b/scripts/commands/requestwaypointatposition.py @@ -6,9 +6,7 @@ def setup(): def run(core, actor, target, commandString): commandArgs = commandString.split("(^-,=+_)color_13548(,+-=_^)=1") - newString = commandArgs[0] - print (newString) - cmdService = core.commandService - cmdService.callCommand(actor, 'waypoint', None, newString) # No need to re-create a script + + core.commandService.callCommand(actor, 'waypoint', None, newString) return \ No newline at end of file diff --git a/scripts/commands/waypoint.py b/scripts/commands/waypoint.py index 5e2802c4..029fe3ad 100644 --- a/scripts/commands/waypoint.py +++ b/scripts/commands/waypoint.py @@ -74,7 +74,6 @@ def run(core, actor, target, commandString): waypoint.setActive(True) waypoint.setColor(WaypointObject.BLUE) name = commandString.split(" ", 5) - print (name) if name == "": name = "Waypoint"