User Tools

Site Tools


prpl:destroyparticle

Differences

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

Link to this comparison view

Next revision
Previous revision
prpl:destroyparticle [2016/12/02 18:33] – external edit 127.0.0.1prpl:destroyparticle [2018/06/17 11:29] (current) – changed title kajacx
Line 1: Line 1:
-<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#everything_else_2|Everything Else 2]]+<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#particles|Particles]]
  
-=====  DESTROYPARTICLE  =====+=====  DestroyParticle  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| | | [ - ] |+PID, mode | | [ i1 i2 - ] |
  
  
 === Description === === Description ===
 +
 +Destroys the particle with PID i1. If i2 is 0, the particle explodes in a small flash with a slight sound. If i2 is any other value, the particle is destroyed silently without any visual effects.
  
 === Examples === === Examples ===
 +<code prpl>
 +# Create a soft enemy particle at pixel coords (8,8) and then destroy it with effects.
 +CreateParticle(8 8 0 0 0 1) ->PID
 +<-PID 0 DestroyParticle
 +</code>
 <code> i2 = GetIntFromStack(); //mode  <code> i2 = GetIntFromStack(); //mode 
  i1 = GetIntFromStack(); //UID   i1 = GetIntFromStack(); //UID 
prpl/destroyparticle.1480721638.txt.gz · Last modified: 2016/12/02 18:33 by 127.0.0.1