DoShockwave

Category: Objects
Since engine version: 7.0 OC

Description

Flings all objects at the specified position in the specified radius. Has no visual effect. The x and y coordinates are always global coordinates.

Syntax

nil DoShockwave(int x, int y, int radius, int caused_by);

Parameters

x:
X coordinate
y:
Y coordinate
radius:
Radius and strength of the shock wave.
caused_by:
[opt] Number of the player who has caused the shock wave. If not specified, the the controller of the calling object is considered to have caused the damage in local calls.

Example

DoShockwave(GetX(), GetY(), 35);
The calling object causes a shock wave that extends 35 pixels.
See also: Explode
Marky, 2015-07