Hey,
I'm new to TrinityCore and ElunaLua.
I'm wondering how to get a list of units (players,other npcs) of a certain npc's range.
I've both tried GetAITarget and GetAITargets but both of them return nill.
Could anyone point me in the right direction on how to get units in range of a certain NPC.