This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| prpl:getparticlesinrange [2016/12/02 23:34] – external edit 127.0.0.1 | prpl:getparticlesinrange [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | <- [[.: | + | <- [[.: |
| - | ===== | + | ===== |
| ^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
| - | | | | [ - ] | | + | | x y range square? enemy? |
| === Description === | === Description === | ||
| + | Gets particles in the specified area: //(x,y)// is the center in cell coordinates, | ||
| + | |||
| + | Returns a list of all found particles. See [[prpl: | ||
| === Examples === | === Examples === | ||
| - | < | + | < |
| - | i4 = GetIntFromStack(); | + | CurrentCoords 10 0 1 GetParticlesInRange -> |
| - | i3 = GetIntFromStack(); | + | # finds all enemy particles that are 5 or less cells away from the current core |
| - | i2 = GetIntFromStack(); | + | |
| - | i1 = GetIntFromStack(); | + | |
| - | stack.Push(new Data(results)); | + | |
| - | + | ||
| </ | </ | ||