Files
NGECore2/scripts/commands/stopdance.py
T
wallaceg09 88a0271216 MOVED stopPerformance code from CreatureObject to EntertainmentService
MOVED stopAudience code from CreatureObject to EntertainmentService
MODIFIED stopdance to utilize refactored stopPerformance code
MODIFIED stopmusic to utilize refactored stopPerformance code
2014-11-07 21:51:19 -06:00

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