<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#everything_else_2|Everything Else 2]] ===== DestroyUnit ===== ^Arguments^Result^Notation^ | UID, Mode| | [ UID Mode - ] | === Description === 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. === Examples === i2 = GetIntFromStack(); //mode i1 = GetIntFromStack(); //UID Self 0 DestroyUnit //Destroys itself without effects Self 1 DestroyUnit //Destroys itself while creating an explosion effect