ShakeObjects

Category: Objects
Since engine version: 4.6.5.0 CP

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

Parameters

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