DoShockwave

Kategorie: Objekte
Ab Engineversion: 7.0 OC

Beschreibung

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);

Parameter

x:
X-Koordinate
y:
Y-Koordinate
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.

Beispiel

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