Function: GetEncounter(spawn)
Description: Gets the encounter list of the Spawn(NPC).
Parameters:
spawn(Spawn) - Spawn object representingspawn.
Returns: Table list of Spawn's in the encounter list
GetEncounterRegistered in this checkout as EQ2Emu_lua_GetEncounter; implementation found at WorldServer/Lua/LuaFunctions.cpp:8412.
Historical signature: GetEncounter(spawn)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Description: Gets the encounter list of the Spawn(NPC).
Parameters:
spawn (Spawn) - Spawn object representing spawn.Returns: Table list of Spawn's in the encounter list
Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. This is a contextual call pattern, not a tested standalone script.
local encounter = GetEncounter(target)
Evidence: server/ItemScripts/LaserGoggles.lua:11; binding EQ2Emu_lua_GetEncounter.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.