No categories assigned
LUA:GetEncounter
- Last edited 12 years ago by I need to Update My Profile
LUA Functions: GetEncounter()
Gets an array of all the spawns in the encounter list
Syntax
GetEncounter(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn who's encounter list we want to get
Usage
function hailed_busy(NPC, Spawn)
local encounter = GetEncounter(NPC)
if encounter ~= nil then
for index, value in pairs(encounter) do
Say(NPC, GetName(value))
end
end
end
This will list all the spawns in the encounter when hailed while in combat