mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
MOVED stopAudience code from CreatureObject to EntertainmentService MODIFIED stopdance to utilize refactored stopPerformance code MODIFIED stopmusic to utilize refactored stopPerformance code
16 lines
395 B
Python
16 lines
395 B
Python
import sys
|
|
|
|
def setup():
|
|
return
|
|
|
|
def run(core, actor, target, commandString):
|
|
entSvc = core.entertainmentService
|
|
perf = entSvc.getPerformanceByIndex(actor.getPerformanceId())
|
|
|
|
if actor.getPosture() != 0x09 or not perf or perf.getDanceVisualId() < 0:
|
|
actor.sendSystemMessage('@performance:dance_not_performing', 0)
|
|
return
|
|
|
|
entSvc.stopPerformance(actor)
|
|
return
|