Files
NGECore2/scripts/radial/usable.py
T
Treeku 94bb6f9a66 Fixed use(), needs radial_filename to be 'usable'
If use() is broken in any of your object scripts, add the following to
setup():

object.setAttachment('radial_filename', 'usable')
2013-12-09 10:30:09 +00:00

13 lines
330 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, ''))
return
def handleSelection(core, owner, target, option):
if option == 21 and target:
core.objectService.useObject(owner, target)
return