<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#particles|Particles]] ===== GetParticleCountInRadius ===== ^Arguments^Result^Notation^ | x y range square? enemy? | count | [ int int int bool bool - int ] | === Description === Gets the number of particles in the specified area: //(x,y)// is the center in cell coordinates, the //range// is the **radius** of the search is cells. If //square// is set, it will search in a square area, otherwise a circle area. Only particles from the specified team are counted. Returns the count of all found particles. See [[prpl:getnearestshipinrange|GetNearestShipInRange]] for more details. === Examples === CurrentCoords 5 0 1 GetParticlesInRadius ->count # counts all enemy particles that are 5 or less cells away from the current core