User Tools

Site Tools


crpl:docs:func_destroyed

Differences

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

Link to this comparison view

Next revision
Previous revision
crpl:docs:func_destroyed [2013/01/14 18:40] – created virgilwcrpl:docs:func_destroyed [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
-TODO+ 
 +<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#vars_and_functions|Vars and Functions]] 
 + 
 +=====  :destroyed  ===== 
 + 
 +=== Description === 
 +Special function that is automatically called on the final invocation of the core after its destruction. 
 +=== Examples === 
 +<code> 
 +# 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 
 +</code>  
 + 
crpl/docs/func_destroyed.1358188810.txt.gz · Last modified: 2025/02/14 14:56 (external edit)