Files
NGECore2/scripts/commands/getplayerid.py
T
Wefi 0086c6e35d Start of Life Day
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.
2013-11-09 21:54:09 -06:00

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