aroundunit

Returns the amount of party members around the unit, and their total health pool percentage for a given range.

local count, pool = aroundunit(unita, range) : number, number

Example

local count, pool = aroundunit('player', 30) : number, number
 
if count > 3 and pool < 60 then
return cast(Effloresence, 'player'):click(playerx,playery,playerz)
end