This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| prpl:getallconnectedparticles [2016/12/02 23:34] – external edit 127.0.0.1 | prpl:getallconnectedparticles [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | <- [[.: | + | <- [[.: |
| - | ===== | + | ===== |
| ^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
| - | | | | [ - ] | | + | | pid | pid* count | [ int - int* int] | |
| === Description === | === Description === | ||
| + | Gets all particles that are connected to this particles in a chain, including itself. All the particle ids are pushed on top of the stack, with the total count pushed on top of it, similar to [[prpl: | ||
| === Examples === | === Examples === | ||
| - | < | + | < |
| - | stack.Push(new Data(rp.UID)); | + | # damage the whole chain |
| - | stack.Push(new Data(results.Count)); | + | <-pid GetAllConnectedParticles 0 do |
| - | } else { | + | 0.5 DamageParticle |
| - | stack.Push(new Data(0)); | + | loop |
| - | + | ||
| </ | </ | ||