This is an old revision of the document!
~~DISCUSSION~~ <- CRPL reference <- Unit Commands
Arguments | Result | Notation |
---|---|---|
Unit UID to Destroy, Explosion Mode (0,1,2) | n1 n2– |
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.
$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