mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-30 00:15:57 -04:00
- 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.
17 lines
547 B
Python
17 lines
547 B
Python
from resources.common import RadialOptions
|
|
import sys
|
|
|
|
def createRadial(core, owner, target, radials):
|
|
radials.add(RadialOptions(0, 7, 1, ''))
|
|
radials.add(RadialOptions(1, 40, 3, '@pet/pet_menu:menu_enter_exit'))
|
|
radials.add(RadialOptions(0, 21, 1, ''))
|
|
radials.add(RadialOptions(0, 60, 3, '@pet/pet_menu:menu_store'))
|
|
return
|
|
|
|
def handleSelection(core, owner, target, option):
|
|
if target:
|
|
if option == 21 or option == 40:
|
|
core.objectService.useObject(owner, target)
|
|
if option == 60:
|
|
core.objectService.destroyObject(target)
|
|
return |