Files
NGECore2/scripts/radial/collection.py
T
Treeku 3a66043f70 Collections can use radial_filename=collection
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().
2013-12-09 10:52:04 +00:00

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