@@ -22,7 +22,7 @@ def run(core, actor, target, commandString):
2222 planet = core .terrainService .getPlanetByName (commandArgs [0 ])
2323 waypoint = core .objectService .createObject ('object/waypoint/shared_waypoint.iff' , planet , float (commandArgs [1 ]), float (commandArgs [2 ]), float (commandArgs [3 ]))
2424 waypoint .setActive (True )
25- waypoint .setColor (colorCheck (core , actor , target , commandString , commandArgs [4 ]))
25+ waypoint .setColor (colorCheck (commandArgs [4 ]))
2626 name = commandString .split (" " , 5 )
2727 waypoint .setName (name [5 ])
2828 waypoint .setPlanetCRC (crc .StringtoCRC (planet .getName ()))
@@ -89,7 +89,10 @@ def run(core, actor, target, commandString):
8989 waypoint = core .objectService .createObject ('object/waypoint/shared_waypoint.iff' , actor .getPlanet (), actor .getWorldPosition ().x , actor .getWorldPosition ().z , actor .getWorldPosition ().y )
9090 waypoint .setActive (True )
9191 waypoint .setColor (WaypointObject .BLUE )
92- waypoint .setName (commandString )
92+ if commandString == '' :
93+ waypoint .setName (actor .getPlanet ().name .capitalize ())
94+ else :
95+ waypoint .setName (commandString )
9396 waypoint .setPlanetCRC (crc .StringtoCRC (actor .getPlanet ().getName ()))
9497 waypoint .setStringAttribute ('' , '' ) # This simply allows the attributes to display (nothing else has to be done)
9598 actorPlayer .waypointAdd (waypoint )
@@ -98,7 +101,7 @@ def run(core, actor, target, commandString):
98101
99102 return
100103
101- def colorCheck (core , actor , target , commandString , validcolors ):
104+ def colorCheck (validcolors ):
102105 if validcolors == "blue" :
103106 return WaypointObject .BLUE
104107 if validcolors == "green" :
0 commit comments