<- PRPL reference <- Everything Else 2
| Arguments | Result | Notation |
|---|---|---|
| UID, Mode | [ UID Mode - ] |
Destroys the Unit of the UID it receives, and what to play when destroyed. Modes:
0 - Nothing
1 - Explosion Effect
Note: This terminates script execution immediately if the Core carrying a script destroys itself. No statement after DestroyUnit will execute.
Editors note: Testing indicates that this command does not produce a result. This page has been updated to reflect that.
i2 = GetIntFromStack(); //mode
i1 = GetIntFromStack(); //UID
Self 0 DestroyUnit //Destroys itself without effects
Self 1 DestroyUnit //Destroys itself while creating an explosion effect