Rebel rank reward system

This commit is contained in:
Zing
2014-06-28 20:23:39 -07:00
parent 585469571a
commit 9d0bf56efe
25 changed files with 1812 additions and 18 deletions
@@ -1,4 +1,17 @@
import sys
def setup(core, object):
object.setAttachment('radial_filename', 'datapad/vehicle_pcd')
object.setIntAttribute('no_trade', 1)
object.setStringAttribute('faction_restriction', 'Rebel')
return
def use(core, actor, object):
if object and actor.getAttachment('activeVehicleID') == None:
barc = core.objectService.createObject('object/mobile/vehicle/shared_barc_speeder_rebel.iff', 0, actor.getPlanet(), actor.getPosition(), actor.getOrientation())
barc.setOwnerId(actor.getObjectID())
actor.setAttachment('activeVehicleID', barc.getObjectID())
core.simulationService.add(barc, barc.getPosition().x, barc.getPosition().z, True)
return