Tile - YCamera - Screen Shake – Ylands

From Bohemia Interactive Community
Revision as of 09:51, 8 July 2021 by YlandsClassyBot (talk | contribs) (Created page with "<!--- THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. --> == Screen Shake(Player, Intensity, Frequency, Durati...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Screen Shake(Player, Intensity, Frequency, Duration, Sound)

YlandsTile-822.png

static screenShake(player: YCharacter, intensity: number, frequency: number, duration: number, sound: YSound): void;

Parameters

player

Target 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.

Description

Shakes the camera of the target player for a given time period.

Notes

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