Lua GetInRangePlayersCount

From ArcEmu-Wiki
Jump to: navigation, search

Description

Returns the number of players in the unit's range. Does not count dead players as of revision 2295. Does not select the players as a target like GetInRangePlayers does.

Usage/Example

function Boss(Unit, Event)
local count = Unit:GetInRangePlayersCount()
 if count < 5 then
   Unit:CastSpell(5)
end
end
Personal tools