User Tools

Site Tools


prpl:isparticle

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

prpl:isparticle [2016/12/02 18:34] – external edit 127.0.0.1prpl:isparticle [2018/06/17 12:31] (current) – added description kajacx
Line 1: Line 1:
-<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#everything_else_2|Everything Else 2]]+<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#particles|Particles]]
  
-=====  ISPARTICLE  =====+=====  IsParticle  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| | | [ - ] |+pid bool | [ int bool ] |
  
  
 === Description === === Description ===
 +Checks if the given particle exists and is not destroyed. Returns 0 if the id is invalid or it is not a particle.
  
 === Examples === === Examples ===
-<code> i1 = GetIntFromStack();  +<code prpl
- stack.Push(new Data(p != null ? : 0));  +<-pid IsParticle if 
- +    <-pid 0.1 DamageParticle 
 +endif 
 </code> </code>
  
prpl/isparticle.1480721644.txt.gz · Last modified: 2016/12/02 18:34 by 127.0.0.1