Tile - YCamera - Screen Shake At – Ylands
Jump to navigation
Jump to search
(Created page with " ---- {{Ylands scripting navbox}} {{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}} Category: Instructions Category: Ylands 1.3") |
Lou Montana (talk | contribs) m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}") |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<!--- | |||
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. | |||
--> | |||
== Screen Shake At(Position, Radius, Fall off distance, Intensity, Frequency, Duration, Sound) == | |||
[[File:YlandsTile-823.png]] | |||
<pre>static screenShakeAt(position: YVector3, radius: number, fallOffDistance: number, intensity: number, frequency: number, duration: number, sound: YSound): void;</pre> | |||
=== 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 === | |||
[[Ylands:Tile Availability - Server|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. | |||
---- | ---- | ||
{{Ylands | {{Navbox/Ylands}} | ||
{{DEFAULTSORT:{{#sub:{{PAGENAME}}| | {{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}} | ||
[[Category: Instructions]] | [[Category: Instructions]] | ||
Latest revision as of 15:24, 24 November 2023
Screen Shake At(Position, Radius, Fall off distance, Intensity, Frequency, Duration, Sound)
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
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.