Category: Objects
Since engine version: 7.0 OC
DoShockwave
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
See also: Explode