User Tools

Site Tools


prpl:getparticlesinradius

<- PRPL reference <- Particles

GetParticlesInRadius

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 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 returned.

Returns a list of all found particles. See GetNearestShipInRange for more details.

Examples

CurrentCoords 5 0 1 GetParticlesInRadius ->particles
# finds all enemy particles that are 5 or less cells away from the current core
prpl/getparticlesinradius.txt · Last modified: 2018/06/17 11:48 by kajacx