BlastObjects

Category: Objects
Since engine version: 4.6.5.0 CP (extended in 4.9.6.0 CR)

Description

Applies explosion damage to all objects at the specified position. iX and iY are always global coordinates. If pContainer is specified, damage is only applied to objects contained in that container. Explosion damage can cause incineration or fling away living objects. In local calls, the controller of the calling object is considered to have caused the damage.

Syntax

void BlastObjects (int iX, int iY, int iLevel, object pContainer, int iCausedBy);

Parameters

iX:
X coordinate
iY:
Y coordinate
iLevel:
Strength
pContainer:
Container of the objects to be blasted.
iCausedBy:
Number of the player who has caused the damage, plus one.

Example

BlastObjects(GetX(), GetY(), 60, this());
The calling object causes explosion damage of level 60 to its contents.
See also: AnyContainer, Explode, NoContainer
jwk, April 2002
Clonkonaut, April 2008