Category: Objects
Since engine version: 1.0 OC
BlastObjects
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, int damage_level);
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.
- damage_level:
- [opt] If specified, then this value overrides the damage that is caused to objects.
Example
BlastObjects(GetX(), GetY(), 60, this);
The calling object causes explosion damage of level 60 to its contents.
See also: Explode