Tile - YSound - Play Sound 3D – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "<!--- THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. --> == Play Sound 3D(Sound, Position, Volume, Audiable D...")
 
No edit summary
Line 10: Line 10:


==== sound ====
==== sound ====
Sound to play


==== position ====
==== position ====
Position to play the sound at


==== volume ====
==== volume ====
Volume of the sound


==== audibleDistance ====
==== audibleDistance ====
Audible distance of the sound
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]


=== Description ===
=== Description ===


Allows to '''play''' '''sound effect''' at given position. Sound effect will '''play''' only '''once'''.
Allows to '''play''' '''sound effect''' at given position.
 
=== Notes ===
 
* Sound effect will '''play''' only '''once'''.





Revision as of 12:15, 12 November 2021

Play Sound 3D(Sound, Position, Volume, Audiable Distance)

YlandsTile-171.png

static play3D(sound: YCustomMusic | YSound, position: YVector3, volume: number, audibleDistance: YAudibleDistance): void;

Parameters

sound

Sound to play

position

Position to play the sound at

volume

Volume of the sound

audibleDistance

Audible distance of the sound

Availability

Server

Description

Allows to play sound effect at given position.

Notes

  • Sound effect will play only once.