This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
crpl:docs:func_destroyed [2013/01/14 18:40] – created virgilw | crpl:docs:func_destroyed [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | TODO | + | |
+ | <- [[crpl: | ||
+ | |||
+ | ===== : | ||
+ | |||
+ | === Description === | ||
+ | Special function that is automatically called on the final invocation of the core after its destruction. | ||
+ | === Examples === | ||
+ | < | ||
+ | # When Destroyed, emit a bunch of Creeper and | ||
+ | #choose 5 units and fire spores at them. | ||
+ | :destroyed | ||
+ | CurrentCoords 1000 AddCreeper | ||
+ | 5 0 do | ||
+ | CurrentCoords RandUnitCoords 1 20 CreateSpore | ||
+ | loop | ||
+ | </ | ||
+ |