Core/Misc: added loading error message for SCRIPT_COMMAND_PLAY_ANIMKIT

SMSG_PLAY_ONE_SHOT_ANIM_KIT can now be used in waypoint_scripts
This commit is contained in:
Aokromes
2017-02-19 09:46:43 +01:00
parent fda6446838
commit f430d2fd31
3 changed files with 25 additions and 1 deletions

View File

@@ -894,6 +894,12 @@ void Map::ScriptsProcess()
}
break;
case SCRIPT_COMMAND_PLAY_ANIMKIT:
// Source must be Creature.
if (Creature* cSource = _GetScriptCreature(source, true, step.script))
cSource->PlayOneShotAnimKit(step.script->PlayAnimKit.AnimKitID);
break;
default:
TC_LOG_ERROR("scripts", "Unknown script command %s.", step.script->GetDebugInfo().c_str());
break;