This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| prpl:destroyparticle [2016/12/02 23:33] – external edit 127.0.0.1 | prpl:destroyparticle [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | <- [[.: | + | <- [[.: |
| - | ===== | + | ===== |
| ^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 | ||
| + | </ | ||
| < | < | ||
| i1 = GetIntFromStack(); | i1 = GetIntFromStack(); | ||