mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
22 lines
404 B
Python
22 lines
404 B
Python
import sys
|
|
|
|
def setup():
|
|
return
|
|
|
|
def run(core, actor, target, commandString):
|
|
|
|
if not commandString.startswith('object/tangible') and not commandString.startswith('object/weapon'):
|
|
return
|
|
|
|
object = core.objectService.createObject(commandString, actor.getPlanet())
|
|
|
|
if not object:
|
|
return
|
|
|
|
inventory = actor.getSlottedObject('inventory')
|
|
|
|
if inventory:
|
|
inventory.add(object)
|
|
|
|
return
|
|
|