Explode

Category: Objects / Existence
Since engine version: 1.0 OC

Description

Makes an object explode. The explosion will affect landscape and objects and the object including all of its contents is removed. If the object is contained, the explosion will also damage all other objects in that container. The owner of the exploding object is considered to have caused the explosion.

Syntax

void Explode(int level, bool silent, int damage_level);

Parameters

level:
Explosion level. This determines the amount of explosion damage caused and the type of explosion sound played. Up to level 29 the explosion is a Blast1, 30 to 39 is a Blast2, and above is a Blast3.
silent:
[opt] If true, then no sound will be played for the explosion.
damage_level:
[opt] If specified, then this value overrides the damage that is caused to objects by the explosion.

Remark

See notice for RemoveObject.

Example

GetHiRank(0)->Explode(25);
The first player's highest ranking clonk explodes.
See also: BlastFree, BlastObjects, RemoveObject
Sven2, 2001-11
Clonkonaut, 2008-04
Marky, 2015-07