No categories assigned

LUA:GetHateList

LUA Functions: GetHateList()

Gets an array of all the spawns in the given spawns hate list


Syntax

GetHateList(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn who's hate list we want to get

Usage

function hailed_busy(NPC, Spawn)
    local hateList = GetHateList(NPC)
    if hateList ~= nil then
        for index, value in pairs(hateList) do
            Say(NPC, GetName(value))
        end
    end
end

This will list all the spawns in the hate list when hailed while in combat