BlastObjects
Category: Objects
Since engine version: 5.1 OC
Description
Applies explosion damage to all objects at the specified position. x and y are always global coordinates. If a container is specified, damage is only applied to objects contained in that container. Explosion damage can cause incineration or fling away living objects.
Syntax
int BlastObjects(int x, int y, int level, object container, int caused_by);
Parameters
- x:
X coordinate
- y:
Y coordinate
- level:
Strength.
- container:
[opt]
Container of the objects to be blasted.
- caused_by:
[opt]
Number of the player who has caused the damage. If not specified, the the controller of the calling object is considered to have caused the damage in local calls.
Example
BlastObjects(GetX(), GetY(), 60, this);
The calling object causes explosion damage of level 60 to its contents.
jwk, 2002-04
Clonkonaut, 2008-04