ShakeFree

Category: Landscape
Since engine version: 1.0 OC

Description

Loosens instable material within a circular area. Loosened material will then begin to fall if there is room underneath. This can be used to collapse earth tunnels or similar.

Syntax

void ShakeFree(int x, int y, int radius);

Parameters

x:
X center position of the circular area to be shaken free. Always global.
y:
Y center position of the circular area to be shaken free. Always global.
radius:
Radius of the circular area to be shaken free.

Example

ShakeFree(LandscapeWidth()/2, LandscapeHeight()/2, Distance(LandscapeWidth(), LandscapeHeight())/2);
Shakes the complete landscape. Careful: this might kill you computer ;)
See also: CastPXS, ShakeObjects
Sven2, 2003-06