mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
23 lines
572 B
Python
23 lines
572 B
Python
import sys
|
|
from engine.resources.scene import Point3D
|
|
|
|
def setup():
|
|
return
|
|
|
|
def run(core, actor, target, commandString):
|
|
|
|
playerObject = actor.getSlottedObject('ghost')
|
|
|
|
if not playerObject:
|
|
return
|
|
|
|
if target and target.getSlottedObject('ghost') is not None:
|
|
actor.sendSystemMessage('Teleporting ' + target.getCustomName() + ' to you...', 0)
|
|
core.simulationService.teleport(target, actor.getPosition(), actor.getOrientation(), 0)
|
|
return
|
|
|
|
else:
|
|
actor.sendSystemMessage('Invalid Syntax. Syntax is: /teleporttarget <HoverTarget>', 0)
|
|
return
|
|
return
|