No categories assigned
LUA:GetEncounterSize
- Last edited 12 years ago by I need to Update My Profile
LUA Functions: GetEncounterSize()
Gets the number of spawns in the encounter for the given spawn
Syntax
GetEncounterSize(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn who's encounter we want to check
Usage
function hailed(NPC, Spawn)
Say(NPC, "There are " .. GetEncounterSize(NPC) .. " in my encounter list")
end
This will make the hailed spawn respond with how many spawns are in its encounter list
Notes
An encounter is a list of every one who will get credit for killing the spawn