mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-21 06:13:13 -04:00
Fixed waypoint commands
This commit is contained in:
@@ -5,6 +5,8 @@ def setup():
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
playerObject = actor.getSlottedObject('ghost')
|
||||
if target is None:
|
||||
return
|
||||
waypointTarget = core.objectService.getObject(target.getObjectID())
|
||||
wp = playerObject.getWaypointFromList(target)
|
||||
if wp.isActive() == True:
|
||||
|
||||
@@ -33,7 +33,7 @@ def run(core, actor, target, commandString):
|
||||
|
||||
#/wp X Z Y NAME
|
||||
if isFloat(commandArgs[0]) and isFloat(commandArgs[1]) and isFloat(commandArgs[2]):
|
||||
waypoint = core.objectService.createObject('object/waypoint/shared_waypoint.iff', actor.getPlanet(), actor.getWorldPosition().x, actor.getWorldPosition().z, actor.getWorldPosition().y)
|
||||
waypoint = core.objectService.createObject('object/waypoint/shared_waypoint.iff', actor.getPlanet(), float(commandArgs[0]), float(commandArgs[2]), float(commandArgs[1]))
|
||||
waypoint.setActive(True)
|
||||
waypoint.setColor(WaypointObject.BLUE)
|
||||
name = commandString.split(" ", 3)
|
||||
|
||||
Reference in New Issue
Block a user