Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
crpl:docs:destroy [2020/05/30 14:31] – Sanian | crpl:docs:destroy [2025/02/14 14:57] (current) – external edit 127.0.0.1 |
---|
~~DISCUSSION~~ | |
<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#unit_commands|Unit Commands]] | <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#unit_commands|Unit Commands]] |
===== Destroy ===== | ===== Destroy ===== |
For the explosion mode argument, 0 means no explosion and no sound, | For the explosion mode argument, 0 means no explosion and no sound, |
1 means a small soundless flash, 2 means a full explosion with sound, 3 means full explosion but no sound. | 1 means a small soundless flash, 2 means a full explosion with sound, 3 means full explosion but no sound. |
| |
| **Note:** If Destroy is called on SELF, the script will stop at that line. Any code after won't be executed. |
| |
<color #ed1c24>Bug warning:</color> There is some issue when deleting a docked guppy or a guppy base, the Destroy function is called again on the next pair of numbers on the stack and can potentially destroy another unit! I recommend using the SafeDestroy function from the example when deleting guppies, strafers or bobmers just to be safe. | <color #ed1c24>Bug warning:</color> There is some issue when deleting a docked guppy or a guppy base, the Destroy function is called again on the next pair of numbers on the stack and can potentially destroy another unit! I recommend using the SafeDestroy function from the example when deleting guppies, strafers or bobmers just to be safe. |