User Tools

Site Tools


prpl:destroyunit

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
prpl:destroyunit [2016/12/21 06:35] Oblivionprpl: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 +       0 - Nothing 
-        1 - Explosion Effect+       1 - Explosion Effect
  
 === Examples === === Examples ===
 <code> i2 = GetIntFromStack(); //mode  <code> i2 = GetIntFromStack(); //mode 
  i1 = GetIntFromStack(); //UID   i1 = GetIntFromStack(); //UID 
- + 
 +        Self 0 DestroyUnit //Destroys itself without effects 
 +        Self 1 DestroyUnit //Destroys itself while creating an explosion effect
 </code> </code>
  
prpl/destroyunit.txt · Last modified: 2016/12/21 18:38 by GoodMorning