BlastFree

Category: Landscape
Since engine version: 1.0 OC

Description

Blasts a hole in solid materials.

Syntax

int BlastFree(int x, int y, int radius, int caused_by, int max_density);

Parameters

x:
X coordinate
y:
Y coordinate
radius:
Radius
caused_by:
[opt] The controller of objects that are created by the blast. See Blast2Objects in material definitions. If not set, the controller is the owner of the calling object.
max_density:
[opt] Only materials of the given density or lower are blasted by this explosion. If not specified, any material is blasted.

Example

BlastFree(300, 300, 40, nil, 70);
Blasts a hole into the landscape with the center of the blast being 300,300. Additionally, only materials of a density of 70 or lower are blasted, so this blast does not blast granite.
See also: Explode