createexplosion
The createexplosion command is used to create explosions that damage enemies.



"then(createexplosion, x position, y position, damage, size)"


Argument Function
x position The x position, relative to the object, where the explosion will be created.
y position The y position, relative to the object, where the explosion will be created.
damage The damage that the explosion will do to enemies.
size The size of the explosion.



And example of the createexplosion command used in a script is as follows...




The following script creates an explosion when the block is stood on.


if(playercollision)
{
then(createexplosion,16,16,48,64)
then(destroy)
}