<- PRPL reference <- Particles

GetParticlesInRange

ArgumentsResultNotation
x y range square? enemy? list [ int int int bool bool - list ]

Description

Gets particles in the specified area: (x,y) is the center in cell coordinates, the range is the DIAMETER 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 returned.

Returns a list of all found particles. See GetNearestShipInRange for more details (Warning: that function uses range and RADIUS, whereas this function uses range as DIAMETER).

Examples

CurrentCoords 10 0 1 GetParticlesInRange ->particles
# finds all enemy particles that are 5 or less cells away from the current core