User Tools

Site Tools


crpl:docs:destroy

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Unit Commands

Destroy

ArgumentsResultNotation
Unit UID to Destroy, Explosion Mode (0,1,2) n1 n2–

Description

Destroys the specified unit. WARNING: ENSURE YOU HAVE SAVED THE MAP BEFORE CALLING THIS! This call will destroy the unit! For the explosion mode argument, 0 means no explosion, 1 means a small soundless flash, 2 or higher means a full explosion with sound.

Examples

$targetX:0
$targetY:0
$speed:7.0
$payload:20

once
	self CONST_CREATEPZ 0 SetUnitAttribute
	<-targetX <-targetY <-speed QueueMove
endonce

GetQueuedMoveCount eq0 if
	#Done
	self 0 Destroy
	
	CurrentCoords <-payload SetCreeper
endif
crpl/docs/destroy.1359826216.txt.gz · Last modified: 2014/10/01 15:02 (external edit)