This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
prpl:destroyunit [2016/12/21 06:35] – Oblivion | prpl:destroyunit [2016/12/21 06:37] – Oblivion | ||
---|---|---|---|
Line 8: | Line 8: | ||
=== Description === | === Description === | ||
- | Destroys the Unit UID of the unit it receives, and what to play when destroyed. | + | Destroys the Unit of the UID it receives, and what to play when destroyed. |
- | 0 - Nothing | + | |
- | 1 - Explosion Effect | + | |
=== Examples === | === Examples === | ||
< | < | ||
i1 = GetIntFromStack(); | i1 = GetIntFromStack(); | ||
- | + | ||
+ | Self 0 DestroyUnit //Destroys itself without effects | ||
+ | Self 1 DestroyUnit //Destroys itself while creating an explosion effect | ||
</ | </ | ||