Core/Creatures: Implement StringId for Creatures, a custom identifier to make finding specific creatures in script easier
Port From (https://github.com/TrinityCore/TrinityCore/commit/61c51b76c00d932a9180bc6781a244dc18375ef7)
This commit is contained in:
@@ -456,6 +456,11 @@ namespace Game.AI
|
||||
return source.FindNearestCreature(entry, maxSearchRange, alive);
|
||||
}
|
||||
|
||||
public static Creature GetClosestCreatureWithOptions(WorldObject source, float maxSearchRange, FindCreatureOptions options)
|
||||
{
|
||||
return source.FindNearestCreatureWithOptions(maxSearchRange, options);
|
||||
}
|
||||
|
||||
public static GameObject GetClosestGameObjectWithEntry(WorldObject source, uint entry, float maxSearchRange, bool spawnedOnly = true)
|
||||
{
|
||||
return source.FindNearestGameObject(entry, maxSearchRange, spawnedOnly);
|
||||
|
||||
Reference in New Issue
Block a user