Tile - YCamera - Screen Shake At – Ylands

From Bohemia Interactive Community
(Redirected from Ylands Tile - Screen shake)
Jump to navigation Jump to search

Screen Shake At(Position, Radius, Fall off distance, Intensity, Frequency, Duration, Sound)

YlandsTile-823.png

static screenShakeAt(position: YVector3, radius: number, fallOffDistance: number, intensity: number, frequency: number, duration: number, sound: YSound): void;

Parameters

position

Epicenter of the shaking effect.

radius

Range of the shaking effect in radius.

fallOffDistance

Defines how far will the effect gradually die down for player.

intensity

How strong will the shaking effect be.

frequency

How often will the shaking occur during the time period.

duration

The time period of the shaking effect.

sound

Sound played during the shaking.

Availability

Server

Description

Shakes the camera at the given position of any player in the given radius.

Notes

  • It is possible to use both camera shake sound effect and sound effect literals, allowing for some creative use of the tile.