ShakeObjects

Category: Objects
Since engine version: 1.0 OC

Description

Shakes all living beings within a given radius. This is comparable to calls to Fling() with low random values to all objects in the target area.

Syntax

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

Parameters

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

Example

ShakeObjects(LandscapeWidth()/2, LandscapeHeight()/2, Distance(LandscapeWidth(), LandscapeHeight())/2);
Shakes all living beings.
See also: BlastObjects, ShakeFree
Sven2, 2003-06