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:
1 parent
fda6446838
commit
f430d2fd31
3 files changed
+25
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user