mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-07-30 00:15:50 -04:00
18 lines
354 B
Python
18 lines
354 B
Python
import sys
|
|
|
|
def execute(objManager, player, target, args):
|
|
ghost = player.getPlayerObject()
|
|
if ghost is None or target is None:
|
|
return
|
|
|
|
waypoint = ghost.getWaypoint(target.getObjectId())
|
|
if waypoint is None:
|
|
return
|
|
|
|
if waypoint.isActive():
|
|
waypoint.setActive(False)
|
|
else:
|
|
waypoint.setActive(True)
|
|
|
|
ghost.updateWaypoint(waypoint)
|
|
return |