User Tools

Site Tools


crpl:docs:func_destroyed

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Vars and Functions

:destroyed

ArgumentsResultNotation

Description

Special function that is automatically called on the final invocation of the core after it's 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
crpl/docs/func_destroyed.1358470635.txt.gz · Last modified: 2025/02/14 14:56 (external edit)