mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
In an object that is always a collection that can be added to
collections, you can put this in setup():
object.setAttachment('radial_filename', 'collection')
Then define use(core, actor, object) and make it use addCollection().
14 lines
396 B
Python
14 lines
396 B
Python
from resources.common import RadialOptions
|
|
import sys
|
|
|
|
def createRadial(core, owner, target, radials):
|
|
radials.add(RadialOptions(0, 21, 1, ''))
|
|
radials.add(RadialOptions(0, 7, 1, ''))
|
|
radials.add(RadialOptions(0, 21, 3, '@collection:consume_item'))
|
|
return
|
|
|
|
def handleSelection(core, owner, target, option):
|
|
if option == 21 and target:
|
|
core.objectService.useObject(owner, target)
|
|
return
|
|
|