User Tools

Site Tools


prpl:getallconnectedparticles

<- PRPL reference <- Particles

GetAllConnectedParticles

ArgumentsResultNotation
pid pid* count [ int - int* int]

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

Examples

# damage the whole chain
<-pid GetAllConnectedParticles 0 do
    0.5 DamageParticle
loop
prpl/getallconnectedparticles.txt · Last modified: 2018/06/17 12:21 by kajacx