mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-15 00:07:39 -04:00
Added basic Npcs to the Lifeday event in Wafar. Need to do. Find a way to bind an ID to a spawned item, as Static id's are refresh every server reset.
25 lines
714 B
Python
25 lines
714 B
Python
import sys
|
|
|
|
def setup():
|
|
return
|
|
|
|
def run(core, actor, target, commandString):
|
|
|
|
if commandString.startswith("quart"):
|
|
print ('commnad: ' + commandString)
|
|
#cmdArgs = commandString.split(" ")
|
|
#qY = cmdArgs[1]
|
|
#qW = cmdArgs[2]
|
|
|
|
quaternion = actor.getOrientation()
|
|
#tp = core.travelService.getTravelPointByName(actor.getPlanet().name, "Mos Eisley Starport")
|
|
#obj = tp.getShuttle()
|
|
target.setOrientation(quaternion)
|
|
print ('Orientation: qY- ' + str(quaternion.y) + ' --- qW- ' + str(quaternion.w))
|
|
Console.println('Orientation: qY- ' + str(quaternion.y) + ' --- qW- ' + str(quaternion.w))
|
|
return
|
|
|
|
elif commandString.startswith("id"):
|
|
print ( str(target.getObjectId()))
|
|
return
|
|
return |