User Tools

Site Tools


crpl:docs:func_destroyed

<- CRPL reference <- Vars and Functions

:destroyed

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
crpl/docs/func_destroyed.txt · Last modified: 2022/07/01 14:37 by Karsten75