ShakeFree

Category: Landscape
Since engine version: 4.6.5.0 CP

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 iX, int iY, int iRadius);

Parameters

iX:
X center position of the circular area to be shaken free. Always global.
iY:
Y center position of the circular area to be shaken free. Always global.
iRadius:
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, CastPXSX, ShakeObjects
Sven2, Juni 2003