Files
NGECore2/scripts/radial/item.py
T
Treeku cd6b2c2678 Added swoop bike
- The deed adds a pcd of the swoop to datapad and self-destructs.
- The pcd stores the objectId of the new swoop.
- When used, the pcd spawns or destroys the swoop depending on whether
it exists or not.
- When the swoop is used or radialed, you can enter/exit it.
2013-12-16 10:04:54 +00:00

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