Creature *pCreature = WorldMgr::Get().GetCreature(guid); if (pCreature != NULL && pCreature->IsDead()) { pCreature->RemoveCorpse(); }
for (auto &creature : WorldMgr::Get().GetCreaturesInArea(x, y, z, radius)) { if (creature->IsDead()) { creature->RemoveCorpse(); } }Package Library: It is difficult to determine the package library as it depends on the game engine or framework being used. However, it is likely that Creature RemoveCorpse is included in a game engine or framework library that provides functionality for game object management and collision detection. Some examples of such libraries include Unreal Engine, Unity, and OGRE.